alam with due dates in access

dy

New Member
Joined
Jun 16, 2004
Messages
19
I'm trying to develop a database that will automatically alarm us on certain dates.
For example, let's say we have different dates set for each items.
A = 6/1/04
B=7/1/04
C=7/15/04

During the dates that I've specified in the table (let's say DueDateTable), I want to be alarmed automatically when the current date is A, B, or C.

Can anyone help?

Thanks,
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi Welcome to the board :biggrin:

How to do it depends on how you use the database. If you open it up each day and just want it to flash up a message box when you open it then you could have a form open on start up and in the Forms open event check the dates.

If the form is open all of the time then you will need to set up a timer event to check every so often to see if it is a valid date.

Peter
 
Upvote 0
Thanks!

If you don't mind, can you be more specific with instructions?

I was able to find the startup menu in Form DesignView.
How about checking the date?
 
Upvote 0
Assuming a table called tbldueDates with a date field called
dDueDates then the Forms Open Event would be

Code:
Private Sub Form_Open(Cancel As Integer)
Dim intfound As Integer
If DCount("[dDueDates]", "tbldueDates", "[dDueDates]=#" & DATE & "#") Then
   intfound = MsgBox("Today is a 'Due Date'", vbCritical, "Due Date")
End If
End Sub

HTH

Peter
 
Upvote 0

Forum statistics

Threads
1,221,707
Messages
6,161,416
Members
451,705
Latest member
Priti_190

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top