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!

Report help

Status
Not open for further replies.

Timbo57

IS-IT--Management
Jun 10, 2005
8
US
I have a rental database with start date and stop date. i would like to have a form for the user to enter the month and then click a button to run all starts for that month. how can i do this?


Thanks in advance!
Tim
 
Hi
You can run an update query using the date on your form. Is that the kind of thing you were thinking of?
 
An update query is used to change values in tables, and it sounds to me like you just want to have a button in a form that launches a report that shows records pertinent to the current month.

I apologize if I misunderstand.

Use a query for the record source of the report. THe query should include these 2 calculated fields:

StartMonth:Month([StartDate]) which has the criteria set to Month(Now())

StartYear:Year([StartDate]) which has the criteria set to Year(Now())

Then put a button on your form that launches the report.

I hope this helps.
 
I just reread your original question and now I see you want the user to ENTER the month, not just use the current month. Sorry. Use a parmeter query as the record source of the report. The criteria for the start date field should be:

Month([StartDate])=[Choose a month from 1-12] And Year([StartDate])=[Choose a year]
 
Thanks Lilliabeth, that is just what i was looking for.
Have a great day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top