G
george
Hi
I'm trying to use some code for Error Logging I found in
the February issue of ACCESS ADVISOR.
The writer uses a Public Sub, Admin_ErrorLog_Add, in order
to record error related information in a table. He also
uses a flashing message form, frmAdmin_Message, made by
himself, in order to display error related information to
the user.
He provides a public method named BadNews which sets the
message's content and also sets its TimerInterval. Part of
the code is as follows:
Public Sub BadNews(<parameters>)
<the code goes here>
End Sub
I have put this code as is in a module. In Public Sub
Admin_ErrorLog_Add he calls this method as follows:
'Display frmAdmin_Message so user can see the message:
DoCmd.OpenForm FormName:="frmAdmin_Message"
Call Form_frmAdmin_Message.BadNews(<parameters>)
I have also used this code as is in my module. Well, my
problem is that I am doing something wrong because I get
the message "Form_frmAdmin_Message.BadNews" needs to be
declared.
How can I make BadNews a method of frmAdmin_Message? I
would appreciate any help.
thanks in advance, george
I'm trying to use some code for Error Logging I found in
the February issue of ACCESS ADVISOR.
The writer uses a Public Sub, Admin_ErrorLog_Add, in order
to record error related information in a table. He also
uses a flashing message form, frmAdmin_Message, made by
himself, in order to display error related information to
the user.
He provides a public method named BadNews which sets the
message's content and also sets its TimerInterval. Part of
the code is as follows:
Public Sub BadNews(<parameters>)
<the code goes here>
End Sub
I have put this code as is in a module. In Public Sub
Admin_ErrorLog_Add he calls this method as follows:
'Display frmAdmin_Message so user can see the message:
DoCmd.OpenForm FormName:="frmAdmin_Message"
Call Form_frmAdmin_Message.BadNews(<parameters>)
I have also used this code as is in my module. Well, my
problem is that I am doing something wrong because I get
the message "Form_frmAdmin_Message.BadNews" needs to be
declared.
How can I make BadNews a method of frmAdmin_Message? I
would appreciate any help.
thanks in advance, george