|
> 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 VB6.0 on an win2000 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,
>
找不到函数名?原因不明白,不是大写空格,也不是中文或者日文的函数名的问题?英文函数名也找不到?请各位指点一下。 |
|