P
Pierre Doré
Migrated this MS ACCESS 2002 to 2007 with the .mdb format. Application
starts but when I initiate a command button that runs code to connect to
ORACLE I get the following error message:
ODBCDirect is no longer supported. Rewrite the code to use ADO instead
of DAO. [3847]
Here is an extract of the code where it fails:
Set gWorkspace = CreateWorkspace("ODBCWorkspace", "ACIIS_ADMIN",
"aciis8adm", dbUseODBC)
gWorkspace.DefaultCursorDriver = dbUseODBCCursor
Set db_ACIIS_ORACLE = gWorkspace.OpenDatabase("ACIIS", dbDriverComplete,
False, "ODBC;UID=" & "ACIIS_ADMIN" & ";PWD=" & "xxxxx" & ";DSN=ACIIS")
Call PULL_OLTF_TO_ACIIS_ACCESS
LAST_SYNCH__START_TIME = Now()
Me.Start_run_txt.Value = LAST_SYNCH__START_TIME
Call Truncate_Oracle_ACIIS_TABLES
Call PUSH_PERSON_TO_ORC
Call PUSH_AC_TO_ORC
Call PUSH_MODULE_TO_ORC
...
...
Here is a very small extract of the PUSH_MODULE_TO_ORC Subroutine:
Private Sub PUSH_MODULE_TO_ORC()
On Error GoTo PUSH_MODULE_TO_ORC_ERROR
ccontext = "In PUSH_MODULE_TO_ORC"
Shell "explorer G:\ACIISDB" ' Activate the link between server WHQ11 and
hqclfs
Dim tmp_rs As Recordset
Dim RecCounter As Double
...
...
'These are the VALUES to be INserted in ORacle
sqlins = sqlins & " values(" & _
MDB_MODULE_CD & ", " & _
MDB_mod_of_day & ", " & _
MDB_start_dt & ", " & _
MDB_module_template_cd & ", " & _
MDB_module_lang & ")"
db_ACIIS_ORACLE.Execute (sqlins)
starts but when I initiate a command button that runs code to connect to
ORACLE I get the following error message:
ODBCDirect is no longer supported. Rewrite the code to use ADO instead
of DAO. [3847]
Here is an extract of the code where it fails:
Set gWorkspace = CreateWorkspace("ODBCWorkspace", "ACIIS_ADMIN",
"aciis8adm", dbUseODBC)
gWorkspace.DefaultCursorDriver = dbUseODBCCursor
Set db_ACIIS_ORACLE = gWorkspace.OpenDatabase("ACIIS", dbDriverComplete,
False, "ODBC;UID=" & "ACIIS_ADMIN" & ";PWD=" & "xxxxx" & ";DSN=ACIIS")
Call PULL_OLTF_TO_ACIIS_ACCESS
LAST_SYNCH__START_TIME = Now()
Me.Start_run_txt.Value = LAST_SYNCH__START_TIME
Call Truncate_Oracle_ACIIS_TABLES
Call PUSH_PERSON_TO_ORC
Call PUSH_AC_TO_ORC
Call PUSH_MODULE_TO_ORC
...
...
Here is a very small extract of the PUSH_MODULE_TO_ORC Subroutine:
Private Sub PUSH_MODULE_TO_ORC()
On Error GoTo PUSH_MODULE_TO_ORC_ERROR
ccontext = "In PUSH_MODULE_TO_ORC"
Shell "explorer G:\ACIISDB" ' Activate the link between server WHQ11 and
hqclfs
Dim tmp_rs As Recordset
Dim RecCounter As Double
...
...
'These are the VALUES to be INserted in ORacle
sqlins = sqlins & " values(" & _
MDB_MODULE_CD & ", " & _
MDB_mod_of_day & ", " & _
MDB_start_dt & ", " & _
MDB_module_template_cd & ", " & _
MDB_module_lang & ")"
db_ACIIS_ORACLE.Execute (sqlins)