Hi,
I'm trying to open a form I created, but I get the the following error message:
The expression On Load you entered as the event property setting produced the following error: User-defined type not defined.
* The expression may not result in the name of a macro,
the name of a user-defined function, or [Event Procedure]
* There may have been an error evaluating the function,
event, or macro.
The following is the customized code I added:
Private Sub Form_Load()
Set dbAP = CurrentDb()
'Use the following line to connect to an Access database:
Set recInvFileNames=
(dbAP.OpenRecordset"qryInvoiceFileNames"
recInvFileNames.MoveLast
intLastRecord = recInvFileNames.RecordCount
recInvFileNames.MoveFirst
Load_Controls
Get_InvoiceNbrs
Even when I comment the code ther error still occurs. The only way I can get rid of it is to delete all of the code.
Is there anyone out there that can help?
Thanks in advance.
I'm trying to open a form I created, but I get the the following error message:
The expression On Load you entered as the event property setting produced the following error: User-defined type not defined.
* The expression may not result in the name of a macro,
the name of a user-defined function, or [Event Procedure]
* There may have been an error evaluating the function,
event, or macro.
The following is the customized code I added:
Private Sub Form_Load()
Set dbAP = CurrentDb()
'Use the following line to connect to an Access database:
Set recInvFileNames=
(dbAP.OpenRecordset"qryInvoiceFileNames"
recInvFileNames.MoveLast
intLastRecord = recInvFileNames.RecordCount
recInvFileNames.MoveFirst
Load_Controls
Get_InvoiceNbrs
Even when I comment the code ther error still occurs. The only way I can get rid of it is to delete all of the code.
Is there anyone out there that can help?
Thanks in advance.