Results 1 to 4 of 4
  1. #1
    jle0003 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    60

    Validation rule for time

    I have 2 textboxes; the first is start time and the second in end time. I have an input mask of 00:00;;_ to format to a 24 hour clock. The events will never span over a 24 hour period; therefore, I need a validation rule that will not allow the user to enter a time in the end time textbox that is less than the time in the start time.

    My attempts resulted in an error message no matter what I entered.

    Help please! Thank you!!!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    To what type of field are these TextBox controls bound?

  3. #3
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Try the attached mdb. Is this what you are looking for?

    Instead of the validation rule, I would use an event function (Before update) to validate the data. You have more options available to validate.

  4. #4
    jle0003 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    60
    Thanks, Steve!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Validation Rule
    By lynnmc26 in forum Access
    Replies: 1
    Last Post: 03-05-2012, 11:45 PM
  2. Validation Rule
    By WayneSteenkamp in forum Access
    Replies: 7
    Last Post: 03-01-2012, 04:22 AM
  3. Validation Rule
    By Darkladymelz in forum Reports
    Replies: 2
    Last Post: 09-15-2011, 07:43 AM
  4. Validation Rule
    By robomose in forum Access
    Replies: 1
    Last Post: 09-09-2009, 05:59 AM
  5. Validation Rule
    By mistaken_myst in forum Database Design
    Replies: 2
    Last Post: 10-29-2007, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums