Notification based on a date (1 Viewer)

MGF23

New member
Local time
Today, 15:39
Joined
Aug 28, 2020
Messages
5
Ey'up!

I have a date field: START DATE and END DATE. If the difference between the two dates is greater than or equal to 7 days, i need a notification to appear on the form (maybe in an adjacent text box) that says something like "REPORT TO EXTERNAL AUTHORITY"

If the condition is not met then the text box could be left blank or present a cursory message like "no further action".

any pointers would be greatly appreciated.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 07:39
Joined
Oct 29, 2018
Messages
21,467
Hi. You could try using an unbound Textbox and just format it to look like a Label. Set the Enabled property to No and the Loked property to Yes. Then in the Control Source, try some like this.
Code:
=IIf(Datediff("d", [Start Date], [End Date])>=7,"Report to External Authority","No report needed")
Hope that helps...
 

Gasman

Enthusiastic Amateur
Local time
Today, 15:39
Joined
Sep 21, 2011
Messages
14,257
Look at the DateDiff() function.
 

Users who are viewing this thread

Top Bottom