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!

Printing Question

Status
Not open for further replies.

fludan

Technical User
Feb 1, 2002
41
US
Hi

I would like a report to print automatically at 5:00pm, is this possible?

Thanks Frank
 
It is possible, but depending on you rpogramming expertise, it may be difficult for you.

Something to remeber is that the database will have to be open at the specified time, or the report will not print. (There is actually a way around this also, but is MUCH more involved.)

On a form (probably your main form), set the Timer interval to 60000 (that's 60 seconds).

Put the following code in the OnTimer event:

If CStr(Format(Time(),"Short Time")) = "17:00" Then
DoCmd.OpenReport "name of report goes here"
End If

The report will now print at 5:00 PM. If we knew what it was we were doing, it would not be called research, would it? - Albert Einstein [atom]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
robert.l.johnson.iii@citigroup.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top