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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reports preliminary basic questions

Status
Not open for further replies.

azzi2000

MIS
Jan 28, 2004
145
US
OrderTable: id, name, orderdate, qty, unitP, ....

I have a simple reports that I would like to ask to list a range of order: beginning date and ending date.
a) How can I introduce the paramter to be linked to the report.
b) If the user enter no date I would like to get all
Please advice,
Dré
 
Create a query that uses the Order Table, add the appropriate fields to the QED, next Select Query-Parameters from the Main Menu and enter
Enter the Beginning Date
for the parameter and select Date/Time as the Data Type,
On the next line add
Enter the End Date
for the parameter and select Date/Time as the Data Type, then click OK to close the parameters dialog box
on the Criteria row for the OrderDate field add

Between [Enter Beginning Date] And [Enter End Date]

Next add a new field like this
Exp:[Enter the Beginning Date]
and set it's Show Property to False
on the 2nd Criteria row (so its an "OR" condition not an "AND" condition) add
Is Null
save the query and then use it as the RecordSource for your report. Then when the report opens the users will be prompted to enter the data, and if left blank, will show all records

PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top