Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Range in a Report

Status
Not open for further replies.

rogerarce

Technical User
Jan 24, 2002
57
CR
I want to create a form which will prompt for date ranges when generating a report. Can someone help me with this?
Thanks in advance.
 
In a query select the field with the date you want the range to cover. Then enter on the criteria&quot; >=[Enter the Beginning Date] and <=[Enter the Ending Date]&quot;. The user would have to enter the dates.

I hope this helps

:)
 
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 &quot;Enter Paramater value&quot; box will appear. Input a valid date and click ok or press enter. A second &quot;Enter Parameter value&quot; 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
 
you can also do the following:

>Date()-[Enter # of Days]

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 &quot;Enter Paramater value&quot; 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

that's my $.02

SA


 
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.
 
For candia -

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:

=&quot;Sales received from &quot; & [Forms]![yourformname].[yourfirstfield] & &quot;through&quot; & &quot; &quot; & [Forms]![yourformname].[yoursecondfield]

Where you would replace &quot;yourformname&quot; with the name of your form and the two fields &quot;yourfirstfield&quot; and &quot;yoursecondfield&quot; with your field names (a date range on your form for example.

Hope that helps.
 
I have also attempted to do this, but I am getting an error message that says:

&quot;The Microsoft Jet database engine does not recognize '[Type beginning date:]' as a valid field name of expression&quot;.

What does this mean? I've checked the format of the field and it seems it should be working.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top