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

VFP program to open an MS Access table and add rows

Status
Not open for further replies.

FoxNovice

Programmer
Apr 10, 2008
25
US
We are using VFP 6.0 and MS Access 2002. I would like to know if it is possible to set up a VFP program that will open a specific table within an MS Access database, add a row, and then populate that row with specific information from either fields from a .dbf or VFP memory variables.

If this can be done, could someone point me in the right direction, possibly with some applicable code? Again, I would like to be able to do this from within VFP.

Thanks!
 
You can do this via ODBC. Look in VFP Help for the SQLConnect(), SQLExec() and SQLDisconnect() commands. Also, check out the Help topic "Using SQL Pass-Through Technology" and the related topics.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top