I'm trying to convert some Access databases to VFP using the following code... and I get an 'ODBC connection failed' message. Where do you get the ODBC drivers?
Andy Snyder
SnyAc Software Services
Code:
lcMyFile = iif(pcount()=1,cMdbPath,GETFILE('MDB'))
lnResult=0
*!* No point if no MDB file is selected
IF !EMPTY(lcMyFile)
*!* Use a SQLStringConnect to connect to the MDB file
lnConnHandle = ;
SQLSTRINGCONNECT('DRIVER=MICROSOFT ACCESS DRIVER (*.MDB);DBQ=' + ;
lcMyFile)
Andy Snyder
SnyAc Software Services