ACC1x: "Illegal Function Call" Error When Exporting ModuleID: Q109951
|
When you run an Access Basic procedure to export a module from one Microsoft Access database to another containing a module of the same name, you receive the error message "Illegal function call."
There are two methods for working around this problem:
Microsoft has confirmed this to be a problem in Microsoft Access versions 1.0 and 1.1. This problem no longer occurs in Microsoft Access version 2.0.
'*******************************
' Declarations section of module
'*******************************
Option Explicit
Function ExportSourceMod ()
DoCmd TransferDatabase A_EXPORT, "Microsoft Access", "DEST.MDB",_
A_MODULE, "SourceMod", "DestMod"
End Function
Microsoft Access "Language Reference," version 1.0, "TransferDatabase
Action," pages 473-476
Microsoft Access "User's Guide," version 1.0, pages 525 and 583
Microsoft Access "User's Guide," version 1.1, pages 529 and 587
For more information about the TransferDatabase action, search for
"TransferDatabase" using the Microsoft Access Help menu.
Keywords : kberrmsg kbprg
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 1, 1999