Click here to Skip to main content
15,896,207 members
Home / Discussions / C#
   

C#

 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
cocoonwls18-Apr-08 15:45
cocoonwls18-Apr-08 15:45 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
darkelv18-Apr-08 15:54
darkelv18-Apr-08 15:54 
GeneralRe: OpenFileDialog and SaveFileDialog [modified] Pin
Spacix One19-Apr-08 3:59
Spacix One19-Apr-08 3:59 
GeneralRetrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Pin
random418-Apr-08 8:46
random418-Apr-08 8:46 
QuestionBiztalk Developers/Architects? Pin
sksassociates18-Apr-08 8:37
sksassociates18-Apr-08 8:37 
QuestionWhat happoned to System.Uri(string, bool)?? [modified] Pin
Spacix One18-Apr-08 8:36
Spacix One18-Apr-08 8:36 
AnswerRe: What happoned to System.Uri(string, bool)?? Pin
Spacix One18-Apr-08 9:40
Spacix One18-Apr-08 9:40 
QuestionC# SQL Exception Error Pin
hobbsieoz18-Apr-08 8:32
hobbsieoz18-Apr-08 8:32 
Hi Im having a problem with SQL and C#.

Here is a copy of my code where the problem is occurring.


private void button1_Click(object sender, EventArgs e)<br />
{<br />
    oleDbConnection1.Open();<br />
    oleDbDataAdapter1.SelectCommand.CommandText = "SELECT * FROM NASDATA where account = 'test'";<br />
    oleDbDataAdapter1.UpdateCommand.ExecuteNonQuery();<br />
    oleDbConnection1.Close();<br />
}


I get an exception error on the ExecuteNonQuery line.

NullReferenceException was unhandled.
Object refernece not set to an instance of an object.

On the design page i have the Oledb connector and dataadapter setup, and the test connection succeeds.

Note: I had this same problem using an Access database to.

I really hope somebody can help.

Many thanks!
AnswerRe: C# SQL Exception Error Pin
Jimmanuel18-Apr-08 9:10
Jimmanuel18-Apr-08 9:10 
GeneralRe: C# SQL Exception Error Pin
hobbsieoz18-Apr-08 20:48
hobbsieoz18-Apr-08 20:48 
GeneralRe: C# SQL Exception Error Pin
Jimmanuel19-Apr-08 2:30
Jimmanuel19-Apr-08 2:30 
QuestionStart a function in application A triggered by application B Pin
pxp18-Apr-08 7:15
pxp18-Apr-08 7:15 
GeneralRe: Start a function in application A triggered by application B Pin
Not Active18-Apr-08 7:31
mentorNot Active18-Apr-08 7:31 
GeneralRe: Start a function in application A triggered by application B Pin
led mike18-Apr-08 11:34
led mike18-Apr-08 11:34 
AnswerRe: Start a function in application A triggered by application B Pin
Judah Gabriel Himango18-Apr-08 8:06
sponsorJudah Gabriel Himango18-Apr-08 8:06 
GeneralRe: Start a function in application A triggered by application B Pin
Spacix One18-Apr-08 8:52
Spacix One18-Apr-08 8:52 
QuestionHow to center the Button through code in the form? Pin
pdoy070818-Apr-08 5:42
pdoy070818-Apr-08 5:42 
AnswerRe: How to center the Button through code in the form? Pin
Charith Jayasundara18-Apr-08 6:16
Charith Jayasundara18-Apr-08 6:16 
GeneralRe: How to center the Button through code in the form? Pin
Charith Jayasundara18-Apr-08 6:19
Charith Jayasundara18-Apr-08 6:19 
AnswerRe: How to center the Button through code in the form? Pin
Rob Smiley18-Apr-08 6:16
Rob Smiley18-Apr-08 6:16 
GeneralRe: How to center the Button through code in the form? Pin
pdoy070818-Apr-08 6:28
pdoy070818-Apr-08 6:28 
GeneralCrystal Reports Pin
Wikus.Olivier18-Apr-08 5:11
Wikus.Olivier18-Apr-08 5:11 
QuestionLooping Though A DataGridView? Pin
Harvey Saayman18-Apr-08 4:48
Harvey Saayman18-Apr-08 4:48 
AnswerRe: Looping Though A DataGridView? Pin
Justin Perez18-Apr-08 5:05
Justin Perez18-Apr-08 5:05 
GeneralRe: Looping Though A DataGridView? Pin
Harvey Saayman21-Apr-08 0:03
Harvey Saayman21-Apr-08 0:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.