I want to copy data from an access table on a regular basis and not change the original Access mdb file. I use the following and I do get the data:
cConStr = "DSN=MS Access Database;DBQ=c:\Sally.mdb;DefaultDir=c:\;DriverID=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;"
nConMDB = SQLSTRINGCONNECT(cConStr)
SQLEXEC(1,'Select * from cells','tcDetails')
=SQLDISCONNECT(nConMDB)
SELECT tcDetails
GO TOP
BROWSE
I know nothing of SQL and got the above to work by using this site. The only problem is when I disconnect from the Access table, I get the error:
Invalid call issued while executing a SQLMORERESULTS() sequence.
Also, does my method look correct? My goal is to get data from Access without any changes to Access.
Any help would be appreciated.
cConStr = "DSN=MS Access Database;DBQ=c:\Sally.mdb;DefaultDir=c:\;DriverID=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;"
nConMDB = SQLSTRINGCONNECT(cConStr)
SQLEXEC(1,'Select * from cells','tcDetails')
=SQLDISCONNECT(nConMDB)
SELECT tcDetails
GO TOP
BROWSE
I know nothing of SQL and got the above to work by using this site. The only problem is when I disconnect from the Access table, I get the error:
Invalid call issued while executing a SQLMORERESULTS() sequence.
Also, does my method look correct? My goal is to get data from Access without any changes to Access.
Any help would be appreciated.