Hi
My PC crashed and I am now having a problem running AMPL. I am using 64 bit Win 10, 64 bit Office 2016 and 32 bit AMPL (confirmed by "ampl -v").
I use an MS Access database which holds data imported by AMPL and holds data exported from AMPL.
I can successfully import data from Access to AMPL and run AMPL however when AMPL attempts to return data to Access the following message occurs:
Error writing table RESULTS with table handler odbc:
Could not connect to "P1Dbase.accdb"
The output line in the AMPL run file is:
table RESULTS "odbc" "P1Dbase.accdb" "Results1":
The AMPL folder includes ampltabl.dll and I have the MS Database engine 2010 installed.
When I execute "display _HANDLERS" I get the following:
set _HANDLERS := tab bit odbc tableproxy;
I changed the output line to include "verbose"
table RESULTS "odbc" "P1Dbase.accdb" "verbose":
and the following output is produced
AMPL ODBC driver, version 20131212.
Calling SQLDriverConnect("DSN=MS Access Database;DBQ=C:\ampl\P1Dbase.accdb")
Failed to connect with DRIVER="MS Access Database"
SQLDriverConnect returned -1
sqlstate = "IM002"
errmsg = "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
native_errno = 0
I have uninstalled and re-installed Office but the problem still exists.
I am at a real loss with this problem. Any help would be most appreciated
Thanking you, Julius