needsolution
Programmer
Hello,
Suppose I have a query that pulls the following fields:
1. Date
2. Amount of payments
I also have a form that has:
1. StartDate Text box
2. EndDate Text box
3. OpenQuery Button
What I want to achieve is to enable user to specify the date range for the query.
How can I change the "Criteria" of the Date field of the query from the form's code?
PS: I currently use the following procedure:
1. Open the Query in Design View
2. Use "SendKeys" to move the cursor to the Criteria and type in the value
I just want to know if there's a better alternative. Thanks in advance.
David Hendrawirawan
Suppose I have a query that pulls the following fields:
1. Date
2. Amount of payments
I also have a form that has:
1. StartDate Text box
2. EndDate Text box
3. OpenQuery Button
What I want to achieve is to enable user to specify the date range for the query.
How can I change the "Criteria" of the Date field of the query from the form's code?
PS: I currently use the following procedure:
1. Open the Query in Design View
2. Use "SendKeys" to move the cursor to the Criteria and type in the value
I just want to know if there's a better alternative. Thanks in advance.
David Hendrawirawan