Reminder for a date field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need a reminder based on a due date in an Access form. How can I
accomplish this? For example, 3 days before due date I like to get a reminder
about that particular customer or task listed in the form.
 
Hi,
Roberta said:
I need a reminder based on a due date in an Access form. How can I
accomplish this? For example, 3 days before due date I like to get a reminder
about that particular customer or task listed in the form.

Here is a rough sketch of things to do:

1) You need to design a form to show whatever you want to remind.

2) Use DCount to count the events that need to be reminded based on the
dates. The following untested code just gives you pointers, you may want to
modify and adopt:

Sub ShowReminder()
Dim intTopic As Integer
intTopic=DCount("Topic", "tblWhereDateValueStored", "FollowUpDate =
DateAdd("d", -3, Date)")
If intTopic > 0 Then DoCmd.OpenForm "frmReminder"
End Sub
3) You can execute the above code from an AutoExec's RunCode Action to fire
the Reminder form as soon as the db is opened.

This only a skeleton. You can take on from here on.
 
RunCode action runs only functions.

Hence, "Sub ShowReminder" should be "Function ShowReminder". Sorry for the
slip in my first post.
 

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

Back
Top