I am using the code below to run a report every wednesday, I would really like the report to run every Wednesday and Thursday at say 19:00 hours. Any help as to how to ammend this code would be helpful.
dim MyDate,MyWeekday
static bSent as boolean
MyDate=Date
MyWeekday = Weekday(MyDate, vbUseSystemDayOfWeek)
If ((MyWeekday = 3) And (bSent=False))Then
DoCmd.SendObject acSendReport, "Support Request Log Query", acFormatSNP, "mikeharris", , , "Pending Report", False
bSent = True
End If
Any help would be great
Many thanks - MIKE
dim MyDate,MyWeekday
static bSent as boolean
MyDate=Date
MyWeekday = Weekday(MyDate, vbUseSystemDayOfWeek)
If ((MyWeekday = 3) And (bSent=False))Then
DoCmd.SendObject acSendReport, "Support Request Log Query", acFormatSNP, "mikeharris", , , "Pending Report", False
bSent = True
End If
Any help would be great
Many thanks - MIKE