Applies to: the ODBC driver against a Microsoft Access .mdb file; the thread names no Clarion version (2004 thread).
Problem
A DSN set up in Control Panel let the poster open the Access file and do the work, but he wanted a DSN-less connection. Two attempts failed: SEND(filename,ConnectString) before the OPEN, and filename{PROP:Owner} = ConnectString.
Solution
- Add a variable to the table's Owner in the dictionary (the answer calls it
G:Connect). - Fill the variable before the file is opened, with a full ODBC connection string. The example given:
G:Connect = 'DRIVER={{Microsoft Access Driver (*.mdb)}' |
& ';DBQ=D:\YourDirectory\YourDatabase.Mdb' |
& ';UID=YourUserId' |
& ';PWD=YourPassword' |
& ';ExtendedAnsiSql=1' |
& ';FIL=MS Access'
- Open the file. The original poster reported four days later that DSN-less ODBC was working and was "MUCH better than DSN access to ODBC".
Caveats
- The
{{in the DRIVER part is as posted; the thread does not explain it. - Two other posters pointed to an attached archive and to a connection-strings reference site; the thread does not say what the archive held.
- The poster did not say which of his two failed attempts was wrong or why.
Today (2026)
Likely still the usual shape (a variable on the Owner holding the connection string). Not re-tested, and the 32-bit Access driver named in the example may not be installed on a current machine.
Sources: Al R. (Apr 2004, the question), Guy C. (Apr 2004, the answer), George C., Kevin E. (Apr 2004) in softvelocity.clarion.databasedrivers.