Hi sir

Closed
deeak - Jun 23, 2009 at 12:52 AM
 akangcupez - Jul 7, 2009 at 09:43 PM
Hello, sir
i have a problem to connectiong the access database .mdb to vb.net2008 my code is

dim connectionstrng as string

connection1string=("provider= microsoft.jet.OLEDB.4.0; Data source=db1.mdb")
dim connecton1 as oledb.oledbconnection=new oledb.oledbconnection(connection1string)

dim command1 as new oledb.oledbcommand("select*from image where id='" & i &"'',connection1)

connection1.open()

when i am running this the errois occured (could not find file 'd:\program files\microsoft visual studio 9.0\common7\IDE\db1.mdb)

sir plz solve that probloem

thanks,

1 response

JET.OLEDB.4.0 is not for Access 2007 database, use ACE.OLEDB.12.0 instead. For more details of sample code visit www.akangcupez.com ; hope it may help you
0