Is there a way to set a Public Const once, through code at startup for example instead of running code to get it every time I need it. I have a function to obtain the computer username and I want to set a variable (public const) to that username when you enter the database. I have tried putting a statment like the one below in the function that runs a startup but error messages tell me it can't be in there. Invalid Attribute problems.
Public Const = ap_UserName()
Help!
Public Const = ap_UserName()
Help!