My Assistant
![]() ![]() |
|
|
Dec 29 2004, 03:17 PM
Post
#1
|
|
|
UtterAccess Addict Posts: 102 |
I have a query that asks the user to enter a range of dates. Basically in the criteria line, I have this...
Between [Enter Beginning Date] and [Enter End Date] Now, in my report in the report header, it looks like this...
|
|
|
|
Dec 29 2004, 03:44 PM
Post
#2
|
|
|
New Member Posts: 5 |
One way would be to have the user enter the start dates and end dates in 2 text boxes on a form. The criteria for your query could point to the form.
For the report create a new text box and you could set the value to = "Between" & " " & [forms]![form1].[start date] & " " & "and " & [forms]![form1].[end date] ** [start date] and [end date] would be the names of the text boxes on the form. |
|
|
|
Dec 29 2004, 03:53 PM
Post
#3
|
|
|
UtterAccess Addict Posts: 102 |
Thanks for your help. I'm out for the day, but I'll check that tomorrow. thanks again.
|
|
|
|
Dec 29 2004, 05:53 PM
Post
#4
|
|
|
UtterAccess VIP Posts: 2,215 From: Vermont, USA |
I would agree with manrav that a form would be a good way to go.
For now you can add a text box and set its controo source to ="Between " & [Enter Beginning Date] & " and " & [Enter End Date] |
|
|
|
Jan 5 2005, 12:13 PM
Post
#5
|
|
|
UtterAccess Addict Posts: 102 |
What do I put in the query to have it point to the form? Something like this...
Field: Finish_Date Table: Project_Table Criteria: Between [forms]![DateRangeFormTextBox].[BeginningDate] And [forms]![DateRangeFormTextBox].[end date] When I put that in, an error message comes up saying.. "Enter Parameter Value" "Forms!DateRangeFormTextBox.BeginningDate" What is the problem here? |
|
|
|
Jan 6 2005, 10:20 AM
Post
#6
|
|
|
UtterAccess VIP Posts: 2,215 From: Vermont, USA |
The syntax is correct.
Make sure sure of the control names |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 22nd May 2013 - 06:20 AM |