Results 1 to 2 of 2
  1. #1
    kwooten is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    255

    VBA Code to exclude codes


    I have to run certain reports and every time I have to type out or copy a long criteria command, “<"399" And <>"356" And <>"311" And <>"306" And <>"312" And <>"313" And <>"314" And <>"315" And <>"193" And <>"350"”… is there a VBA code I can write where I don’t have to do this every time?

  2. #2
    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

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

Similar Threads

  1. Exclude columns with no data
    By Gee in forum Access
    Replies: 3
    Last Post: 03-21-2013, 02:40 PM
  2. NOT not working to exclude text
    By Pedagogic368 in forum Access
    Replies: 3
    Last Post: 07-25-2012, 08:43 AM
  3. exclude field in query
    By chrisy in forum Queries
    Replies: 2
    Last Post: 10-28-2011, 09:53 AM
  4. Exclude values that appear in a certain table
    By DB2010MN26 in forum Queries
    Replies: 4
    Last Post: 09-08-2010, 02:33 PM
  5. Exclude records within same criteria
    By brooke48 in forum Queries
    Replies: 14
    Last Post: 05-15-2010, 02:15 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