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

Date Validation Problem 3

Status
Not open for further replies.

DanAuber

IS-IT--Management
Apr 28, 2000
255
FR
I have a table with two dates in it (Start and End) - I also have a form where people can enter Data and then hit a button which uses the data in the form to update records in the table via a query.<br>I want the update to check that End date (if entered) is always later than Start date - any ideas<br>Please be Gentle<br>Dan <p>Dan Auber<br><a href=mailto:DanAuber@aol.com>DanAuber@aol.com</a><br><a href= Auber's Home Page</a><br>
 
Use the Before Update event of the End Date field:<br><br>If [enddate]&lt;[startdate] then<br>&nbsp;&nbsp;msgbox &quot;Duh..End date must be after start date!&quot;<br>&nbsp;&nbsp;Cancel=true<br>End If<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top