Results 1 to 3 of 3
  1. #1
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    242

    Date value in an unbound text box

    Hi to all,
    I have an unbounded text box on a form and I want the user enter a date in it.
    How can I validate that the value typed in the text box is a date?

    Thank you.

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    You can use

    Code:
    If Not IsDate(Me.MyDateControl) Then ....
    But you might want more than that as validation e.g. check it's a sensible date not 13/2/207 - which is a valid date.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    242
    Hi,
    Thank you for the reply.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-22-2019, 02:26 PM
  2. Replies: 1
    Last Post: 04-24-2018, 07:00 AM
  3. Replies: 3
    Last Post: 03-09-2014, 02:19 PM
  4. Auto fill date into unbound text box
    By data808 in forum Programming
    Replies: 4
    Last Post: 02-26-2014, 09:21 PM
  5. IIF formula in an unbound text box using date()
    By probablyjoel in forum Forms
    Replies: 3
    Last Post: 04-20-2012, 12:03 PM

Tags for this Thread

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