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

Scheduling a form to print

Status
Not open for further replies.

rosn459

Programmer
Sep 18, 2003
37
US
I need to schedule a report to print everynight at 5:45. How would I do this? I've gotten this so far:

Dim Start!
Start! = "17:45:00"
DoEvents
PrintForm
 
One suggestion add a timer control with an interval of say 1000 then in the Timer1_Timer event add

Dim TempDate As Date
Const Start = "17:45:00"
Static LastRunDate As Date

TempDate = Date
If LastRunDate = TempDate Then Exit Sub
If Format(Time, "HH:nn:ss") >= Start Then
LastRunDate = TempDate
'
PrintForm
'
End If



 
Son,

Thanks for the suggestion! I will give it a try!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top