Object reference not set to an instance of an obje

nkaykut

New Member
get this error when I am trying to insert a record...any ideasi get this error so much. lol.<BR><BR>i think it has to do with using new and = when creating your variables.<BR><BR>If you create your variable like:<BR><BR>dim dr as sqlDataReader<BR><BR>before you use it, make sure you set it equal to something NEW<BR><BR>dr = new sqlDataReader()<BR><BR>you can do this too:<BR><BR>dim dr as new sqlDataReader<BR>I am so stunned....Forgot to ad the actual connection string(path to the datbase)...duhhh! we all learn by our mistakes..thanks anyway..brent
 
Back
Top