Results 1 to 4 of 4
  1. #1
    DaveT99 is offline Advanced Beginner
    Windows 11 Access 2019
    Join Date
    Mar 2018
    Location
    SPAIN
    Posts
    94

    query to filter on records containing ???


    is it possible to create a query that will return all records that contain a number of ???? within a description fields

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,928
    easy answer is to use the instr function

    where instr(descfield,"?")>0

    ?instr("abc?123","?")
    4



    or the like operator

    where descfield like "*?*"

    ?"abc?123" like "*?*"
    True





    but I suspect the issue is non recognised characters being displayed as '?'

  3. #3
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    433
    you may also try:
    Code:
    SELECT * FROM YourTableName WHERE FieldName LIKE "*????*"

  4. #4
    DaveT99 is offline Advanced Beginner
    Windows 11 Access 2019
    Join Date
    Mar 2018
    Location
    SPAIN
    Posts
    94
    Many thanks CJ_London, didnt expect to get a reply so quick, will try that now

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

Similar Threads

  1. Replies: 5
    Last Post: 04-14-2023, 09:05 AM
  2. Replies: 2
    Last Post: 12-09-2019, 07:52 AM
  3. Replies: 9
    Last Post: 02-24-2015, 11:19 AM
  4. Replies: 5
    Last Post: 03-22-2013, 01:11 PM
  5. Query to list only records containing a word
    By esh112288 in forum Queries
    Replies: 4
    Last Post: 11-01-2012, 05:24 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