michaeljohannes
Registered User.
- Local time
- Today, 03:37
- Joined
- May 3, 2007
- Messages
- 67
Hello Access Forum 'Form'ers,
I have question regarding a simple way to retrieve information in a report (based on a query).
I would like to create a Form (called frmSelectDateRange) where a user can retrieve results from a query (and consequently shown in a report) using combo boxes.
I think it would be something like:
2 dropdown boxes to show dates (nice new feature in 2007 shows a little calendar one can easily select a date):
cboStartDate
cboFinishDate
1 control button:
cmdOpenReport (this report based on the query)
In the past, I have done this where I simply use the following code in the 'date' field of the query.
More accurately, in the design view of the query, I simply entered the above BETWEEN statement in the CRITERIA section of that field.
This WORKS! It's fine... But because it pops up a window that says, "Enter Parameter Value" with no option to use a calendar type button (featured in 2007), it's not as user friendly as having a form to do this.
So! Is it even possible to use two unbound fields in a form INSTEAD of using a SQL between statement for a date, to generate a report based on a query I create/assign to that given report?
Any, all thoughts are much appreciated!
Thanks!
Mike
I have question regarding a simple way to retrieve information in a report (based on a query).
I would like to create a Form (called frmSelectDateRange) where a user can retrieve results from a query (and consequently shown in a report) using combo boxes.
I think it would be something like:
2 dropdown boxes to show dates (nice new feature in 2007 shows a little calendar one can easily select a date):
cboStartDate
cboFinishDate
1 control button:
cmdOpenReport (this report based on the query)
In the past, I have done this where I simply use the following code in the 'date' field of the query.
Code:
SELECT DISTINCTROW from [myTable] where [date] BETWEEN [enter the start date] AND [Enter the finishDate]
More accurately, in the design view of the query, I simply entered the above BETWEEN statement in the CRITERIA section of that field.
This WORKS! It's fine... But because it pops up a window that says, "Enter Parameter Value" with no option to use a calendar type button (featured in 2007), it's not as user friendly as having a form to do this.
So! Is it even possible to use two unbound fields in a form INSTEAD of using a SQL between statement for a date, to generate a report based on a query I create/assign to that given report?
Any, all thoughts are much appreciated!
Thanks!
Mike
