A little more on sql syncing to Access.
The code snippet below highlights the basis for
creating DSN-Less connections to a remote Database.
There are a number of parameters that can be
used in the connection string, but these are the
bare minimum.
As far as updating the data in the Access table,
you'll need to become conversant with SQL syntax
if you are not already. You'll of course need to
know the structure of the Access tables, relations,
etc.
Make a duplicate of the Access database and begin
playing with it. You can use the snippet below as
a basis to begin exploring the structure of the tables.
Also, you'll more than likely have to deal with some
datatype conversion issues, but if not, consider yourself
lucky.
Hope this helps a little.
Darrell
[tt]
LOCAL cConnectString, nConnHandle, nResult
cConnectString=;
"Driver={Microsoft Access Driver (*.mdb)};"+;
"DefaultDir=\\MyServer\company\Northwind;"+;
"DBQ=Northwind.mdb;"+;
"UID=;"+;
"PWD=;"
nConnHandle = SQLSTRINGCONNECT(cConnectString )
* Make sure you get a valid connection handle
IF nConnHandle < 0
MESSAGEBOX( ;
'Cannot make connection', 16, 'SQL Connect Error' ;
)
ELSE
* Get table, view, and system table names
nResult = 0
nResult = ;
iif(SQLTABLES(nConnHandle, "'TABLE'", "tbls"

==1, ;
bitor(nResult,1),nResult)
nResult = ;
iif(SQLTABLES(nConnHandle, "'VIEW'", "views"

==1, ;
bitor(nResult,2),nResult)
nResult = ;
iif(SQLTABLES(nConnHandle, "'SYSTEM TABLE'", "systbls"

==1, ;
bitor(nResult,4),nResult)
*** Do some processing ***
* ...
* ...
* ...
* Disconnect!
SQLDISCONNECT(nConnHandle)
ENDIF
[/tt]