Printing date and time

  • Thread starter Thread starter Tman
  • Start date Start date
T

Tman

I have a report that is a receipt for items purchased. I need to be able
to print 3 copies at a time. I can do this.

I have setup the report to use date, time and customer id for a unique
receipt number. Like Receipt Number: 01082004-144548-987.

Problem with this is when I print the receipt and it take more than 1
sec to print I have 3 copies but they are no longer unique. I have tried
to go into preview mode and run this, but the report does not print what
is on the screen for (minutes . and seconds) it prints minutes and
seconds at the time of print.

Is there a way to make the report not-so-dynamic as to if I were to
bring this up in preview mode, it prints whatever is there for date and
time?

Thanks for your time on this.

Tman
 
Tman,

How about setting the receipt number to a variable before printing the
report?

-Andy
 
Andy,

I don't think I know how to do that? Could you point me in that direction?

Thanks!
Tman
 
Since you haven't told us how you are printing the 3 copies, you probably
have a form open when the report is printing. Add an invisible text box
"txtNow". Prior to opening the report(s) set the value of txtNow to Now().
Then open the reports and reference the value with Forms!frmYourForm!txtNow.
 
Thanks Duane,

I learned something too...

-Andy

Duane Hookom said:
Since you haven't told us how you are printing the 3 copies, you probably
have a form open when the report is printing. Add an invisible text box
"txtNow". Prior to opening the report(s) set the value of txtNow to Now().
Then open the reports and reference the value with Forms!frmYourForm!txtNow.
 
Back
Top