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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check date of last visited

Status
Not open for further replies.

ksam14714

Technical User
Apr 7, 2015
9
0
0
SA
Using VBA wanted to make sure the client's last visit date to the Bank
and not allow him to exchange within a specified time period, for example, 20 days

I know it's annoying you but thank you
 
In another way
make sure the number of days between the current date and the date of his last visit
if less than for example 20 aren't allowed to add data and alert message appears if more, allow it.
 
Did you try something like:

Code:
If Date - CDate("06/20/2016") < 20 Then
    MsgBox "Less than 20 days"
End If

Just substitute 06/20/2016 with the last visit date.

Have fun.

---- Andy

There is a great need for a sarcasm font.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top