Hi Danny,
Hello from the beach!
What your code does is open a connection - kind of like opening a door. You
didn't select, read, update or delete any data - kind of like no one came
through the door going either way.
You can't "link" to the data in the way that you can using ODBC. You can
select data into an ADO recordset, the same way you might when selecting
data via ADO from SQL Server.
The FoxPro DBC is a database container in that it has metadata about the
tables it contains. An example is that it houses stored procedures. You
don't interact with it directly but when your connection points to it you
can then interact with the tables with traditional SQL such as
"Select LastName, FirstName From MyTable Where City = 'The Beach'"
To work with data from a particular table all you need to do is use it's
name - MyTable, where there is a MyTable.dbf present in the directory where
the DBC is.
--
Cindy Winegarden
(e-mail address removed)
VFP OLE DB:
http://msdn2.microsoft.com/en-us/vfoxpro/bb190232.aspx
VFP ODBC:
http://msdn2.microsoft.com/en-us/vfoxpro/bb190233.aspx