Results 1 to 4 of 4
  1. #1
    cksm4 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    24

    DoCmd.ApplyFilter with wild card

    Hello,



    Still new at this so this may sound basic...

    I need to filter a column on a split form based on matching text using a wild card search. I am unsuccessfully attempting to use this code:

    If Me.CboShowMe = "Pending Items" Then
    DoCmd.ApplyFilter , ActivityType Like "Pending*"

    The field ActivityType can contain multiple values beginning with "Pending". I want to show all these values when "Pending Items" is selected from the CboShowMe combo box.

    Help is GREATLY appreciated!

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I think it should be:
    DoCmd.ApplyFilter , "ActivityType Like 'Pending*' "

  3. #3
    cksm4 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    24
    Thanks! Using...

    DoCmd.ApplyFilter , "[ActivityType] Like 'Pending*' "

    ...worked. Without the brackets it asked for parameters. But this got me where I needed!!

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    sometime always tiny things make us crazy.

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

Similar Threads

  1. 6 Deck Card Shuffling In Access
    By bcmarshall in forum Access
    Replies: 42
    Last Post: 03-04-2018, 04:22 PM
  2. Credit Card Info, Where?
    By mastromb in forum Access
    Replies: 3
    Last Post: 05-26-2010, 12:37 AM
  3. Help with ApplyFilter
    By kabichan in forum Programming
    Replies: 1
    Last Post: 01-15-2010, 09:21 PM
  4. Import with a wild card
    By ukgooner in forum Import/Export Data
    Replies: 3
    Last Post: 09-09-2009, 08:08 AM
  5. Using ApplyFilter in Form...help please
    By playfuljade in forum Forms
    Replies: 8
    Last Post: 12-19-2005, 09:35 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