1.Make sure that Jet 4.0 is installed on your machine(check MDAC version)
2.Sorry I missed slash in previous post. There should have been "\db.mdb", not "db.mdb". App.Path is sometimes VB install path so check it under debugger ...
4.Specify record source and type of command ADO control must execute against your Access database, for example:
adcMyData.RecordSource = "MyNiceTable" ' here must be you real table name
adcMyData.CommandType = adCmdTable
adcMyData.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & App.Path & "\db.mdb;"
adcMyData.Refresh
Cool that worked, cheers. Sorry to be a pain but using this method how do I link a database field to a text box. For eg using the vb properties box of the textbox you select the ado control in the data source box and the data field property in the data field?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.