Results 1 to 4 of 4
  1. #1
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370

    Question Query criteria

    Hello all,

    I have text field that is storing both dates, and "N/A."

    I'm trying to to get only records that match this format "mm/dd/yyyy" or "xx/xx/xxxx"

    Are there any format functions for query criteria, like must match this format "__/__/____" ?



    I know I can just use "<> "N/A"" however I want "<> "N/A" AND Format = "__/__/____"

    Is there anything like this?

    Thanks

  2. #2
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Figured it out

    Expression1: IsDate(MyField)
    Criteria: Yes

  3. #3
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Just note that "IsDate" will check for any valid date format, not just "mm/dd/yyyy", in case that is important to you.

  4. #4
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    That's even better, Thanks Joe for the response!

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

Similar Threads

  1. Replies: 2
    Last Post: 04-02-2015, 12:45 PM
  2. Replies: 1
    Last Post: 11-13-2014, 11:34 PM
  3. Replies: 4
    Last Post: 08-30-2014, 10:23 AM
  4. Replies: 5
    Last Post: 09-20-2012, 03:27 PM
  5. Replies: 5
    Last Post: 08-02-2012, 09:44 AM

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