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!

Code for configuring ODBC Data Source Administrator

Status
Not open for further replies.

baltman

Technical User
Mar 5, 2002
1,578
US
I am trying to write some code for FoxPro to automatically import data from MS Access for a report. I have the following 2 lines of code which work great for the Northwind Database:

******
CREATE SQL VIEW "Remotetest" REMOTE CONNECT;
"MS Access Database" AS SELECT * FROM Employees

sele * from Remotetest into cursor tempdata
******

My problem is that I cannot figure out how to "configure" the "MS Access Database" by "Select"ing databases with code so that my users don't have to use the ODBC control panel. It seems that this should be doable with one or two lines of code....

In other words, what code do I need to point to an "MDB" other than Northwind?

Thanks in advance!

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top