G
Guest
Hello to all,
I created the following function in my main form called "Switchboard":
Public Function GetAgentName() As String
GetAgentName = "John Doe"
End Function
I'm trying to use this function to update text boxes contained in all my
forms and reports. The control source of each text box in all reports and
forms has this reference:
=GetAgentName()
The function call works fine in the main "Switchboard", but it does not work
in other forms or reports. In the other reports I get this popup message:
Enter Parameter Value
According to Access Help Section, anything defined as public is supposed to
be "available to all procedures in all modules in all applications unless
Option Private Module is in effect", which it's not.
What's up with this?
I created the following function in my main form called "Switchboard":
Public Function GetAgentName() As String
GetAgentName = "John Doe"
End Function
I'm trying to use this function to update text boxes contained in all my
forms and reports. The control source of each text box in all reports and
forms has this reference:
=GetAgentName()
The function call works fine in the main "Switchboard", but it does not work
in other forms or reports. In the other reports I get this popup message:
Enter Parameter Value
According to Access Help Section, anything defined as public is supposed to
be "available to all procedures in all modules in all applications unless
Option Private Module is in effect", which it's not.
What's up with this?