In a query select the field with the date you want the range to cover. Then enter on the criteria" >=[Enter the Beginning Date] and <=[Enter the Ending Date]". The user would have to enter the dates.
hi roger,
create a query. In the criteria section of the date enter:
Between [Enter begin date] and [enter end date]
Create your report with the query. In record source of report place the name of the query.
When you open the report a "Enter Paramater value" box will appear. Input a valid date and click ok or press enter. A second "Enter Parameter value" box will appear. Enter a valid date etc... when you press enter your report should give you all the info on your report between the first and second date.
Jim
The above should give you records for the last X number of days.
Say you wanted the report to show what date ranges were entered into the "Enter Paramater value" box?
Add 2 unbound fileds onto your report and in those fileds type the following:
type into unbound field #1: enter starting date
type into unbound field #2: enter ending date
hey i have a daterange but if i click on the preview button i wanna got to other form where all my entries is listed in a dropdown... from there i can able to handel it.. my problem is how to link this two forms..
I have a query which specifies a date range and the correct data is pulled to a report with the dates for each line item. Is there a way I can get the date range that was specified to appear in the heading of the report? Thanks.
Just add an unbound text field to your report - In the control source refer to the form field that contains the information
An example would be:
="Sales received from " & [Forms]![yourformname].[yourfirstfield] & "through" & " " & [Forms]![yourformname].[yoursecondfield]
Where you would replace "yourformname" with the name of your form and the two fields "yourfirstfield" and "yoursecondfield" with your field names (a date range on your form for example.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.