AshikHusein
Registered User.
- Local time
- Today, 14:12
- Joined
- Feb 7, 2003
- Messages
- 147
I have a form in which the boxes on the top part of the form accept the criteria which go into making up an SQL statement which then helps build up a query using querydef.
The fields in the bottom part of the form are bound to the query created above using querydef.
When I change the query, (which I do by changing the critieria on the top part of the form) and click on the button which has the code to build up the query, the form does not refresh with the query with the new set of criteria.
In the code, at the end, I use the following:
forms("the_current_form").requery
To load the re criteried query I have to close and open the form again.
What am I doing wrong? Thanks. :banghead:
The fields in the bottom part of the form are bound to the query created above using querydef.
When I change the query, (which I do by changing the critieria on the top part of the form) and click on the button which has the code to build up the query, the form does not refresh with the query with the new set of criteria.
In the code, at the end, I use the following:
forms("the_current_form").requery
To load the re criteried query I have to close and open the form again.
What am I doing wrong? Thanks. :banghead: