I am using code directly out of a "Beginning Visual Basic 2005 Databases" book. I have declared OleDbConnection as "objConnection" with the following code:
Private objConnection As OleDbConnection
I am able to use the objConnection variable in code that opens the connection:
But when I try to execute:
I get "NullReferenceException Was Unhandled"
I'm just getting my feet wet with this stuff, and I've ground through every line of code to insure it works. Seems to me if I can open the puppy I should be able to close it!