Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reminders pop-ups on a particular day in access 2

Status
Not open for further replies.

springy2003

Instructor
Jan 30, 2003
67
GB
Hi, I am not sure if it can be done in coding, but I want my database that I have at the moment to produce a pop-up box every friday. The pop-up box isn't really a pop-up box, but really just a form that just remind the user to backup data. So is there a code that can check the day and if the day match, it will open up the form. I know I have to use the autoexec marco to do this, probably...

Thank you

Richard
 
here's one example....


sub its_friday()

if Weekday(Now()))=6 then
msgbox("Please backup your data")
else
end if

end sub
 
One more question, what if I want a message box to pop up on the first of the month? I try replacing Weekday with Month and 6 with 1, but it doesn't work. Any suggestion?
 
The code should be something like this:

If Day(Now()) = 1 Then
MsgBox ("Please backup your data")
Else
End If

it will pop every 1st of the month
 
And here are both arguments in one sub...

if Weekday(Now()))=6 or Day(Now()) = 1 then
msgbox("Please backup your data")
else
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top