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

I am new to Access and need a Date Condition on open

Status
Not open for further replies.

dpwsmw

MIS
Apr 2, 2003
76
US
I am designing a Report, When I launch the report I would like it to ask for a date and when I enter that date, I would like it to pull only the date that I enter. From a field named transdate.

Can anyone help?
 
Create a query from your table and prompt for the date in the criteria row for your date column:

Code:
Select A.* 
FROM [i][red]yourtablename[/red][/i] as A 
WHERE A.[transdate] = [Enter select date(mm/dd/yyyy): ];

Save and name the above SQL code as a saved query. Use it as the RecordSource for your report rather than the table. When the report is run the query prompts the user for the appropriate date. Then selects the records and runs the report.

Post back if you have any questions.

[COLOR=006633]Bob Scriver[/color]
MIState1.gif
[COLOR=white 006633]MSU Spartan[/color]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top