Date on Report

P

PJ

I have a command button in a form that refresh information in that form.

In the event procedure I have the following:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70

Is there a way once I hit the refresh button it will place that current date
of the last time I hit that refresh button in a current report when I print
it.

Thanks in advance
 
A

Al Campagna

PJ,
In the event procedure...
What event?

Since you didn't indicate the date field name, or where it's located,
I'll use
DOLE (date of last edit), and assume a Date/Time field on your main form.

Just add this line to your code
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
DOLE = Now
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 

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