I thought this would be a simple process but I'm having trouble with it:
I set up the following in a module:
Option Compare Database
Global gbl_user_name As String
Public Function get_global(gbl_user_name As String) As Variant
gbl_user_name = "Jack Sprat"
End Function
When I try to set the contents of a text box (on a form) to gbl_user_name
Me.txt_user_name.Value = gbl_user_name
I get the following error message.
Expected variable or procedure, not module.
Please help if you can.
Thanks,
jackkent