Discussion Locked

VB6 Access2000 and Data Controls

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I've previously only used vb6 with access97 but now that I'm using 2000 my data controls won't work.

I insert the name of my database into DatabaseName and when I go to select my Record Source it comes up with the error
"Unrecognised Database format"

I am using DAO 3.6 and I have installed the latest MDAC update.

I can do everything else though, like reading and writing records and I can move through the table using the .movenext command and everything. It's just the data control.

Your help is appreciated.

3 replies

by vinnyd

You are using the Data Control and will need to change from that to the ADO control.

Under Project and Componets find the

"Microsoft ADO Data Control"

and add it to your project.

When you setup the connection string use the Microsoft Jet 4.0 OLE DB Provider.

This discussion is closed to new replies.