Reminders

N

naiveprogrammer

I have a db that is set to remind the user to view certain records. I have
the query in the form_load in a switchboard. This all works very well except
now.... the user needs to view records based on different criteria's. Now she
wants reminders like these for every record-

Remind every week for the first 30 days
After the 1st 30 days then Remind at 60 days
After 60 days Remind at 90 days.


I have NO idea where to start with this. ANY help would very much welcomed.
THANKS!

Here is my current code.

***CODE***
Private Sub Form_Load()

Dim intStore As Integer

intStore = DCount("[AppNumber]", "[tblJobs]", "[ExpectedCompletionDate]
<=Now()-90 AND [Complete] =0")


If intStore = 0 Then
Exit Sub
Else


If MsgBox("There Are " & intStore & " Names To Review." & _
vbCrLf & vbCrLf & "Would you like to see these now?" _
, vbQuestion + vbYesNo, "You Have Names To Review...
") = vbYes Then
DoCmd.Minimize
DoCmd.OpenForm "frmRemind", acNormal

Else
If vbNo Then
DoCmd.Quit
Exit Sub

End If
Exit Sub
End If
End If

End Sub
***END CODE***
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Remove Identical words 0
OnLoad Event with 4 queries... 0
WORD VBA Search and switch to advanced ... 1
Do While Loop code 4
pop-up reminders 1
Form not closing 3
Timer event does not fire 1
Copy record code 2

Top