Forms.OpenArgs Lost It's Value For No Obvious Reason, Is It Possible???
Posted on 2006-11-28
I have a form that's used as the startup form of an Access 2k front-end application. Here the user basically selects a company (02 = XYZ Company South, 03 = XYZ Company North, etc.). After the selection is made the OnClick event will open the main form for the application (Form1) setting the OpenArgs of this form to the company selection (02 or 03, etc.). This OpenArgs is used in various functions throughout the application like linking to different backend servers based on this value and I noticed when I was testing a new report the OpenArgs value of the form was empty and none of the code for the report did anything with the OpenArgs value for the main form although some VBA code for the report did error out on something totally different.
The question is has anyone experienced the OpenArgs value of a form being reset or emptied after it was set for no apparent reason???