I want to set an expiration date in MS Access exacly in VBA on open form, beginning from actual Date to 30 days, or 1 year. i have this code :
But i want to add 30 days from now,(actual date) and appear a message box that says: Sorry Evaluation Period Expired
Code:
Private Sub Form_Open(Cancel As Integer)
if date>= "#June 10th 2014#" then
msgbox("Sorry Evaluation Period Expired")
cancel = true
Exit sub
end if
End Sub
Comment