cyberman55
Registered User.
- Local time
- Today, 00:05
- Joined
- Sep 22, 2012
- Messages
- 83
Hi all, I have a very large Access application and use a hidden "main switchboard" to store data such as the current customer ID. Prior to the advent of tempvars, I embedded a key control into many query's underlying combo boxes, list boxes and forms criteria: "Forms![main switchboard]![currentcustomerid].
The problem arises when the user quits the application on with forms using this in their underlying query(ies). As far as I can tell, the application closes forms in the order in which they were opened, so the "main switchboard" closes first. Then, for some reason, the current form has a requery and the user is presented with a prompt to enter the parameter "forms![main switchboard]![currentcustomerid]. I tested and found I could replace the criteria reference to a tempvar to "fix" the problem. However, I've got over 3500 queries to look through and wonder if there is a faster way to fix annoyance. I wonder if there would be a way to open every query in design view and do a search and replace on the criteria statement. Otherwise, if anyone can offer a better solution, well it would be appreciated!
The problem arises when the user quits the application on with forms using this in their underlying query(ies). As far as I can tell, the application closes forms in the order in which they were opened, so the "main switchboard" closes first. Then, for some reason, the current form has a requery and the user is presented with a prompt to enter the parameter "forms![main switchboard]![currentcustomerid]. I tested and found I could replace the criteria reference to a tempvar to "fix" the problem. However, I've got over 3500 queries to look through and wonder if there is a faster way to fix annoyance. I wonder if there would be a way to open every query in design view and do a search and replace on the criteria statement. Otherwise, if anyone can offer a better solution, well it would be appreciated!