Results 1 to 5 of 5
  1. #1
    genedi is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2015
    Posts
    2

    Wildcard Table

    Hi,

    I have created a table of entries I would like to use as exclusions. I want to create a query that uses this table as wildcards and excludes any fields that have this entry.

    Click image for larger version. 

Name:	Exclusion Table.JPG 
Views:	15 
Size:	10.1 KB 
ID:	22742
    Example: I want my query to use the above table and use it as a wildcard to exclude any fields that have "$", "Auditor", "Train",etc....



    I'm trying to use a table dynamically rather then using the Not Like function.
    Click image for larger version. 

Name:	Last User.JPG 
Views:	15 
Size:	24.3 KB 
ID:	22744



    Any help would be greatly appreciated.

    Thanks,

    Gene.
    Attached Thumbnails Attached Thumbnails Last User.JPG  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Well, criteria parameters do not 'exclude fields' - they exclude records.
    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.

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I think he meant records not fields. Not sure though.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    genedi,

    The responses so far tend to indicate that your post is not clear. You mention fields, but responses talk records.
    Using an exclusion table approach usually involves values in certain field; Not a character or string within a field.
    see this example

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Maybe:

    SELECT Table1.*, Table2.* FROM Table1, Table2 WHERE Table1.fieldname NOT LIKE "*" & Table2.fieldname & "*";
    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. Numerical Wildcard in an Access table
    By gaker10 in forum Access
    Replies: 5
    Last Post: 03-06-2015, 10:14 AM
  2. Using a wildcard if an IIF statement.
    By atlee in forum Programming
    Replies: 6
    Last Post: 02-23-2014, 04:02 PM
  3. Replies: 9
    Last Post: 12-05-2013, 11:48 AM
  4. Querying a wildcard
    By undee69 in forum Queries
    Replies: 1
    Last Post: 10-15-2012, 06:00 AM
  5. If OR statement (maybe a wildcard?)
    By Lorlai in forum Queries
    Replies: 5
    Last Post: 07-27-2011, 10:21 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