Validating a field (dependent fields) (1 Viewer)

hazeyw

New member
Local time
Today, 06:40
Joined
May 28, 2005
Messages
5
I am trying to put in a validation rule so that data in one field cannot be less than that in another.
e.g. i want to make a validation rule so that a phone call end time cannot be before the phone call start time.
Can anyone help???
 

strep21

Registered User.
Local time
Today, 07:40
Joined
May 27, 2005
Messages
11
Not in a table.
Use a validation rule in your input form.
 

hazeyw

New member
Local time
Today, 06:40
Joined
May 28, 2005
Messages
5
Ok Cheers, will do

Can you suggest the code needed plez
 

strep21

Registered User.
Local time
Today, 07:40
Joined
May 27, 2005
Messages
11
I attached a mini-sample.
Good luck :D
 

Attachments

  • hazeyw.zip
    8.6 KB · Views: 220

hazeyw

New member
Local time
Today, 06:40
Joined
May 28, 2005
Messages
5
Thanks very much,

Solved now........Erm any chance you can look at my other query?

Cheers :)
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 01:40
Joined
Feb 19, 2002
Messages
43,774
I didn't look at the example posted by strep21 so please forgive me if this post is unnecessary. The code should be placed in the FORM's BeforeUpdate event, not in the BeforeUpdate event of the second date field as most people are inclined to place it. If the code is placed in the Form's BeforeUpdate event, it won't matter in which order the fields are filled in and it won't matter if the first date is changed after the second date is entered.
 

Users who are viewing this thread

Top Bottom