Hi I want a vb app that if u put a record in after a year there must a msg apear that it should be checked out.
I cannot set the timer that after a year it should give u a msg
The small subroutine below will allow you to check at or after a year has passed using the datediff function
You may of course wish to edit the message text
sub Annualmsg(dtofLastEntry as date)
if DateDiff("yyyy", Now, dtofLastEntry)>= 1 then
msgbox "It has been a year or more since this record was accessed"
end if
end sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.