I have a simple database created which requires an Auto E-mail to be sent to individuals who are 30 days pass due. The following code works fine for the first record but doesn't step in and do the same with other records, as well, the Do While (expression) and Loop sends the e-mail to the first record ... could someone tell me what I need to do ...
Private Sub Form_Load()
Dim emailaddr As String
emailaddr = Me.Champion
If [30 Day Expiry] = Date Then
Do While whatever condition
DoCmd.SendObjec t , _
, , emailaddr, , , "Report One", "Hello", False
Loop
Private Sub Form_Load()
Dim emailaddr As String
emailaddr = Me.Champion
If [30 Day Expiry] = Date Then
Do While whatever condition
DoCmd.SendObjec t , _
, , emailaddr, , , "Report One", "Hello", False
Loop
Comment