P
Pierre Doré
Original application in MS Access 2002. When migrated to A2007 the following
line
Set gWorkspace = CreateWorkspace ("ODBCWorkspace", "ACIIS_ADMIN",
"aciis18dev", dbUseODBC)
Note that this workspace was define in a seperate module:
Public gWorkspace As Workspace
generates the error message below:
:ODBCDirect is no longer supported. Rewrite the code to use ADO instead of
DAO. [3847]
Here is the code in full for this section:
Set gWorkspace = CreateWorkspace("ODBCWorkspace", "ACIIS_ADMIN",
"aciis18dev", dbUseODBC)
gWorkspace.DefaultCursorDriver = dbUseODBCCursor
Set db_ACIIS_ORACLE = gWorkspace.OpenDatabase("ACIIS", dbDriverComplete,
False, "ODBC;UID=" & "ACIIS_ADMIN" & ";PWD=" & "aciis8adm" &
";DSN=ACIIS_TEST")
line
Set gWorkspace = CreateWorkspace ("ODBCWorkspace", "ACIIS_ADMIN",
"aciis18dev", dbUseODBC)
Note that this workspace was define in a seperate module:
Public gWorkspace As Workspace
generates the error message below:
:ODBCDirect is no longer supported. Rewrite the code to use ADO instead of
DAO. [3847]
Here is the code in full for this section:
Set gWorkspace = CreateWorkspace("ODBCWorkspace", "ACIIS_ADMIN",
"aciis18dev", dbUseODBC)
gWorkspace.DefaultCursorDriver = dbUseODBCCursor
Set db_ACIIS_ORACLE = gWorkspace.OpenDatabase("ACIIS", dbDriverComplete,
False, "ODBC;UID=" & "ACIIS_ADMIN" & ";PWD=" & "aciis8adm" &
";DSN=ACIIS_TEST")