T
Tom
I have code I want to execute when I open Access. I've
created a macro with 'RunCode' - cdeLinkDB2Tables.
When I try to run my macro, I get an error message:
"Microsoft Access can't find the name 'cdeLinkDB2Tables'
you entered in the expression."
I'm using Access 2000 with DB2 on an AS/400 on the
backend. The code DOES work, in debug mode. Here:
table - tblODBCTables - db, library, table, index field
names
macro - mcrLinkDB2Tables - RunCode - cdeLinkDB2Tables
module -
mdl_MainProcedure -
Public Function cdeLinkDB2Tables
Public Sub cdeDeleteODBCTableNames
cdeLinkDB2Tables - code was debugged when this 'function'
was temporaarily made a 'sub'. All the current ODBC
table links are deleted and recreated per the entries in
the table tblODBCTables.
I came across a note about the module name not being the
same as the macro name, or some such (hence the 'cde'
prefix on the VBA code). But I still get the error.
Anyone have any ideas? Can anyone see what it is that
I'm [still] missing?
Thanks a lot, in advance,
Tom
created a macro with 'RunCode' - cdeLinkDB2Tables.
When I try to run my macro, I get an error message:
"Microsoft Access can't find the name 'cdeLinkDB2Tables'
you entered in the expression."
I'm using Access 2000 with DB2 on an AS/400 on the
backend. The code DOES work, in debug mode. Here:
table - tblODBCTables - db, library, table, index field
names
macro - mcrLinkDB2Tables - RunCode - cdeLinkDB2Tables
module -
mdl_MainProcedure -
Public Function cdeLinkDB2Tables
Public Sub cdeDeleteODBCTableNames
cdeLinkDB2Tables - code was debugged when this 'function'
was temporaarily made a 'sub'. All the current ODBC
table links are deleted and recreated per the entries in
the table tblODBCTables.
I came across a note about the module name not being the
same as the macro name, or some such (hence the 'cde'
prefix on the VBA code). But I still get the error.
Anyone have any ideas? Can anyone see what it is that
I'm [still] missing?
Thanks a lot, in advance,
Tom