Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO + MSAccess problem

Status
Not open for further replies.

Gigatech

Programmer
Jul 12, 2000
80
CR
Hi, I use Delphi 7 and MSAccess 2002. I'm trying to connect to my database using ADO. I created the ADOConnection (ADOConnection1) and it works fine when I test it. When I add an ADOTable, I set the connection property to ADOConnection1 and when I select the table changing the TableName Property an error message appears: Invalid ENum Value and the aplication crashes. What is it ?

Best regards.
 
Hi,

Does your connection string look like the following?

Code:
Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=files/customers.mdb;Mode=ReadWrite|Share Deny None;Persist Security

If so... delete the mode string.

Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top