Results 1 to 2 of 2
  1. #1
    VPF is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    1

    Criteria for not wanting records containing a particular digit in the 5th position in a 6digit field

    Hi,



    Looking for criteria to be used in query design view- will be selecting a field containing 6-digit records BUT do not want to select records that contain a "1" in the 5th field, such as "999412". Is there a quick way to do this?

    I was thinking of a first query to select all of the 6 digit records, then a second query to select the last 2 digits, and then a 3rd query not like 1*


    Any ideas?

    Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    This is a text type field?

    Mid(fieldname, 5, 1) <> 1
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 4
    Last Post: 04-06-2018, 02:37 AM
  2. Replies: 18
    Last Post: 12-19-2017, 10:30 AM
  3. Importing 4 digit field as date
    By tagteam in forum Access
    Replies: 9
    Last Post: 06-13-2013, 02:34 PM
  4. Replies: 0
    Last Post: 01-11-2011, 06:12 PM
  5. Replies: 1
    Last Post: 09-01-2006, 03:49 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