Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenArgs value getting lost.

Status
Not open for further replies.

grnzbra

Programmer
Mar 12, 2002
1,273
US
We have two SQL Servers which to which users are assigned on a load leveling program. The Access application opens a form in design mode and creates checkboxes on the form. It then opens the form in normal mode and passes a listing number (this is a real estate office) as an OpenArg.

The OnOpen event opens a recordset using the OpenArg in the where clause. When the user is on one of the SQL Servers, it runs fine, but when the user is on the other, the code in OnOpen event thinks the OpenArgs value is null. However, when we've stepped through the code, we've see that in the OpenForm call, the OpenArgs has a listing value in it.

Just to make life interresting, when the design mode call is given the OpenArgs value, it works fine.

Does anyone have any idea what could be happening?
Or should this be posted in the SQL Server section?
 
All module variables lose their value anytime an unhandled exception is thrown.

Also, maybe you have code that sets the Openargs property somehow?

Or, maybe you have code that 're-opens' the form (which probably won't reset the openargs property)?


Just throwing some ideas out there.
 
The same code is copied nightly to both servers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top