Hello,
Ive made a database in Access 2007 for work that holds everyones contacts inside of it. Then on a form where you can view all these contacts I have placed a "prompt date" option. This is there so that the user knows they have to contact this customer within a certain amount of days, say 5.
This is were I'm falling down, as I can't for the life of me find a way to make a code to show a message when you go onto the "Edit Contacts" form that says you need to contact a certain person.
Originally searching the Internet I found this code,
If (DateDiff("d", Now, thedate) < 7) Then
MsgBox ("Less than 7 days until event")
End If
But it doesn't do what I want because it tells you no matter what, even if there are no Prompt Dates set, plus it doesn't tell you which Customer needs to be contacted.
The database is shared by everyone over a network and I don't really mind if say, Dave can see Barry's alert message when he goes on as long as Barry can also see it.
I know it seems like a lot but I would be greatful of any help. I'm not what you'd call overly skilled in Access but I can get by.
Thanks a lot
Ive made a database in Access 2007 for work that holds everyones contacts inside of it. Then on a form where you can view all these contacts I have placed a "prompt date" option. This is there so that the user knows they have to contact this customer within a certain amount of days, say 5.
This is were I'm falling down, as I can't for the life of me find a way to make a code to show a message when you go onto the "Edit Contacts" form that says you need to contact a certain person.
Originally searching the Internet I found this code,
If (DateDiff("d", Now, thedate) < 7) Then
MsgBox ("Less than 7 days until event")
End If
But it doesn't do what I want because it tells you no matter what, even if there are no Prompt Dates set, plus it doesn't tell you which Customer needs to be contacted.
The database is shared by everyone over a network and I don't really mind if say, Dave can see Barry's alert message when he goes on as long as Barry can also see it.
I know it seems like a lot but I would be greatful of any help. I'm not what you'd call overly skilled in Access but I can get by.
Thanks a lot