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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 ADODB Connection to dBase III

Status
Not open for further replies.

MogrDannson

Programmer
Jan 8, 2003
1
US
Can anyone tell me what the ADODB connection string in VB6 for a dBase III file might be?

I am completely unfamiliar with dBase and I want to use the connection to create a recordset which I can read from. Something like:

rstdBase.Open "SELECT * FROM ____", cnndBase, adOpenForwardOnly

Are there separate tables in dBase files the way there are in Access files? If there are how can I get a list of them programatically?
 
Let's suppose the dbase III file you want to connect is located in c:\123 and the file name is abc.dbf.

The coding would be as the following

cnndBase.open "Provider= _____;Data Source=c:\123;Extended properties=dBase III"

rstdBase.Open "SELECT * FROM abc", cnndBase, adOpenForwardOnly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top