Results 1 to 2 of 2
  1. #1
    ldare2000 is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    4

    Date Related Validation

    Hi,

    I'm teaching the WJEC Applied ICT A2 assignment and there's one thing my students need to do which I am unsure of myself.

    The assignment is based on a Car Auction and between Tuesday and midday Wednesday traders can enter bids using a forms and the bids table. How could I enter a validation rule that would only allow entried between these times?

    Would I set the default value in the table as =date()
    But how could I set the validation in the form ? Would it take Between 0:00:00 Tuesday until 12:00 Wednesday?



    Thanks in advance
    Louis

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    I don't think you want to do this in the form property. The valid bid period is changing from auction to auction or item to item or something like that - it is not fixed one time forever...

    I think you want unbound text boxes in your form (which ultimately you can make not visible once this is all working). One would be =Now() which sets the current time...others for BidPeriodStart and BidPeriodEnd - am not sure where those values come from or whether they already exist in the record..... but in any case once the user puts in some entry in any field - in your AfterUpdate event you do this time comparison - - and go from there....

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

Similar Threads

  1. Print custom date for data validation
    By TheFuzzball in forum Database Design
    Replies: 2
    Last Post: 10-26-2009, 06:48 AM
  2. New database - Students related DB
    By Hayat in forum Database Design
    Replies: 0
    Last Post: 07-29-2009, 07:59 AM
  3. ODBC related struggles
    By gray8110 in forum Access
    Replies: 0
    Last Post: 12-08-2008, 02:31 AM
  4. Validation Rule: Date
    By krymer in forum Access
    Replies: 0
    Last Post: 08-27-2008, 03:30 PM
  5. Field Level Date validation
    By fadone in forum Forms
    Replies: 1
    Last Post: 12-09-2005, 10:23 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