Connecting Tech Pros Worldwide Help | Site Map

Date greater than date in another field

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 04:04 AM
Olly
Guest
 
Posts: n/a
Default Date greater than date in another field

I need a date validation that will not allow a date to be entered in
the field if it occurs before a date in another field (StartDate). But
I cannot find any information on how to do this.

Olly


  #2  
Old November 13th, 2005, 04:04 AM
Jeff Smith
Guest
 
Posts: n/a
Default Re: Date greater than date in another field

Behind the field's before update event (in the form, not the table) place
the following code:

If Me![YourFieldName] < Me![StartDate] Then
Msgbox "The date you have entered is and earlier date than the Start
Date."
Cancel = True
End If

Jeff


"Olly" <oliver@olly86.co.uk> wrote in message
news:1099473976.073997.83400@f14g2000cwb.googlegro ups.com...[color=blue]
> I need a date validation that will not allow a date to be entered in
> the field if it occurs before a date in another field (StartDate). But
> I cannot find any information on how to do this.
>
> Olly
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.