|
-
May 11th, 2005, 11:33 AM
#1
Thread Starter
New Member
Validating a date [Resolved]
What sort of thing would I need to put in the validate event of a textbox to make sure that only a date between two certain dates could be added? Thanks.
Last edited by sg1psychopath; May 11th, 2005 at 12:15 PM.
-
May 11th, 2005, 11:38 AM
#2
PowerPoster
Re: Validating a date
On the lost focus event..
If trim(txtdate.text) <> "" then
if isdate(txtdate.text) then
if cdate(txtdate.text) >= cdate("01/01/2001") and cdate <= cdate("01/01/2001") then
esle
'send error message
txtdate.setfocus
endif
endif
change the dates to suit your needs
-
May 11th, 2005, 12:14 PM
#3
Thread Starter
New Member
Re: Validating a date
Thanks, just what I needed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|