N
Nick
I'm using the following code to call a SendMail macro if the EntryDate of a
quote in our Quote Log has a variance of over 10 days from the current date.
I tested the logic using the On Activate event of the Quote Log Update form.
Private Sub Form_Activate()
Dim stDocName As String
stDocName = "QuoteSend"
If DateDiff("d", [EntryDate], Date) > 10 Then
DoCmd.RunMacro stDocName
End If
End Sub
I have been using the form event and macro only to test the logic. I would
like to be able to call this code independent of a form event. Basically, I
would like to use AutoExec to open the database once a day, scan the table
for the variance, and use CDONTS to send the e-mail (something I still have
to work on). I would like a bit of help with the first part (calling the
code independent of the form event). Any advice you can offer her would be
appreciated. Please let me know if my explanation has not been adequate.
Thanks in advance,
Nick
quote in our Quote Log has a variance of over 10 days from the current date.
I tested the logic using the On Activate event of the Quote Log Update form.
Private Sub Form_Activate()
Dim stDocName As String
stDocName = "QuoteSend"
If DateDiff("d", [EntryDate], Date) > 10 Then
DoCmd.RunMacro stDocName
End If
End Sub
I have been using the form event and macro only to test the logic. I would
like to be able to call this code independent of a form event. Basically, I
would like to use AutoExec to open the database once a day, scan the table
for the variance, and use CDONTS to send the e-mail (something I still have
to work on). I would like a bit of help with the first part (calling the
code independent of the form event). Any advice you can offer her would be
appreciated. Please let me know if my explanation has not been adequate.
Thanks in advance,
Nick