Question : How do I program my Access 2007 to export data automatically at different times throughout the day?  i.e.10:00 am, 1:00 pm, 4:00 pm  7:00 pm

How do I program my Access 2007 to export data automatically at different times throughout the day?  i.e.10:00 am, 1:00 pm, 4:00

Answer : How do I program my Access 2007 to export data automatically at different times throughout the day?  i.e.10:00 am, 1:00 pm, 4:00 pm  7:00 pm

Full code with event Name:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Private Sub Form_Timer()
'10:00 AM  =  0.41667
'1:00 PM =0.54167
'4:00 PM= 0.66667

Dim strDate As Date
strDate = Format(Now, "mm/dd/yyyy h:n")
    If strDate = Format((Date + 0.41667), "mm/dd/yyyy h:n") Or strDate = Format((Date + 0.54167), "mm/dd/yyyy h:n") Or strDate = Format((Date + 0.66667), "mm/dd/yyyy h:n") Then
        'Do Something
    End If
End Sub
Random Solutions  
 
programming4us programming4us