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

Date function on print button?

Status
Not open for further replies.

sdavid74

Technical User
May 28, 2002
21
US
I have an input form that I also use to view data. On the form is a button that prints out a report using the current record's data. Is there any way to view the date that the report was last printed?
 
Does the application record the date in a table or elsewhere? I don't believe Access tracks the date a report was last printed. You should create a table and add logic in the Print button click event to insert a row in the table when the report is printed. Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
I'm somewhat new to Access and very new to scripting, so please forgive me if I have trouble communicating....I would like Access to show the date on the input form itself...perhaps beside the print button. Is this possible?
 
The button test is in the Caption property. Add the following code in the button Click or the form On Load event.

cmdPrint.Caption = Format(date,"dd/mm/yy") Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top