Results 1 to 3 of 3
  1. #1
    nick243 is offline Competent Performer
    Windows 7 64bit Access 2002
    Join Date
    May 2016
    Posts
    185

    Access Criteria issue

    Hi,



    I would like some help on how to look at the 3rd and 4th digit of the string in a table by using a query criteria? Any help would be appreciated. Then update a field based on that number or delete the record.

    41700401AAJ

    EXE.

    If =70 and Flag = Mail

    Delete the record

    second query is

    41300401AAJ

    EXE.

    If =30 and Flag = Mail

    Update PC to 30

    Thanks,
    Nick Clutter

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    in a select query that pulls fields, add: Mid([field],3,2)
    this brings in 70 , or 30.

    then make an update query to either delete 70, or update 30

  3. #3
    nick243 is offline Competent Performer
    Windows 7 64bit Access 2002
    Join Date
    May 2016
    Posts
    185
    Thank You RanMan this worked.

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

Similar Threads

  1. Query Criteria Issue
    By DavidMcArthur in forum Queries
    Replies: 10
    Last Post: 08-02-2018, 05:18 AM
  2. Criteria issue with DCount
    By JimO in forum Access
    Replies: 10
    Last Post: 08-29-2017, 11:56 AM
  3. Replies: 17
    Last Post: 08-28-2017, 06:25 PM
  4. report Criteria issue
    By manic in forum Reports
    Replies: 2
    Last Post: 02-15-2012, 10:02 PM
  5. Criteria Issue
    By RichardS in forum Queries
    Replies: 3
    Last Post: 09-16-2010, 09:19 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