VB Integration error
-
i was not sure which forum to post this under but i hope someone can help me out. i am using microsoft visual basic express edition with sql server express edition. when the programs were first installed they worked fine, but recently i have been getting the error message: "Object reference is not set to an instance of an object", when i try to add anything to a sql database. i can create the database file but when i try to add a table or anything else to it i get that error. i tried uninstalling and reinstalling sql server express but it did not work. does anyone know how to fix this? any help is greatly appreciated. Thank you, - Kyle
-
i was not sure which forum to post this under but i hope someone can help me out. i am using microsoft visual basic express edition with sql server express edition. when the programs were first installed they worked fine, but recently i have been getting the error message: "Object reference is not set to an instance of an object", when i try to add anything to a sql database. i can create the database file but when i try to add a table or anything else to it i get that error. i tried uninstalling and reinstalling sql server express but it did not work. does anyone know how to fix this? any help is greatly appreciated. Thank you, - Kyle
gr8coaster329 wrote:
"Object reference is not set to an instance of an object",
You'll need to give us a snippet of code around the line where the exception occurrs. The error message means that something is set to
null
(orNothing
) when it shouldn't.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog
-
gr8coaster329 wrote:
"Object reference is not set to an instance of an object",
You'll need to give us a snippet of code around the line where the exception occurrs. The error message means that something is set to
null
(orNothing
) when it shouldn't.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog
i did not enter any code for it. after adding the database to the project i tried to add a table to it by right clicking on tables under the database file in the database explorer window and selecting add new table and i get that error. - Kyle
-
i did not enter any code for it. after adding the database to the project i tried to add a table to it by right clicking on tables under the database file in the database explorer window and selecting add new table and i get that error. - Kyle
reinstalling visual basic express edition solved my problem. thanks anyways for the help - Kyle