I am using a form (I call it a preform) that users select or enter criteria in, the click a button, and another form opens with records that were filtered by a query based on the criteria they entered.
The query seems to work just fine. If I just open the query, and type parameters into the prompts that pop up I get what I should.
However, if I put those same parameters into the "preform", then click the button, I get all the records, no filter.
Here is the weird part, the preform and button work like they are supposed to for awhile, lets say 10 or 15 different searches, then all of a sudden it just doesn't work any more and returns all the records. No matter what parameters I put in.
In the On Click event for the button I have:
DoCmd.OpenForm "NewWorkfrm", acNormal, "Query1"
Am I missing something stupid??
This is making me nuts, so ANY help is greatly appreciated!!
The query seems to work just fine. If I just open the query, and type parameters into the prompts that pop up I get what I should.
However, if I put those same parameters into the "preform", then click the button, I get all the records, no filter.
Here is the weird part, the preform and button work like they are supposed to for awhile, lets say 10 or 15 different searches, then all of a sudden it just doesn't work any more and returns all the records. No matter what parameters I put in.
In the On Click event for the button I have:
DoCmd.OpenForm "NewWorkfrm", acNormal, "Query1"
Am I missing something stupid??
This is making me nuts, so ANY help is greatly appreciated!!