Help with Calendar control

E

eacollie

I want to put a calendar control on a form, have the user
select a date, and then run a report based on that date. I
think I would collect the date in a variable in the
calendar's onUpdate code, then use this as a filter to
send to the report. Is that correct?

Thank you for any help you can give in coding!
 
G

Guest

-----Original Message-----
I want to put a calendar control on a form, have the user
select a date, and then run a report based on that date. I
think I would collect the date in a variable in the
calendar's onUpdate code, then use this as a filter to
send to the report. Is that correct?

Thank you for any help you can give in coding!
.

All you need to do is to get the date from the control
when the report is being run. Assuming the user must
click a button to run the report, use the code behind the
onclick event of the command button:

for example

sub Command0_onclick()
docmd openreport "This report",acpreview, "Date = " &
me.datecontrol
 
G

Guest

My report is based on a query. The date I want to filter
by is from the table "TRANSACTIONS" and the Field
is "TRANSACT_DATE". How do I use your code below using
this field name?

Thank you for your invaluable help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top