Results 1 to 4 of 4
  1. #1
    dotNet is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Dec 2011
    Location
    Kansas
    Posts
    9

    Filtering on textbox than contains ampersand

    I have a company field in my database and a corresponding textbox on my form. I know there is a company named T&P in the database.


    When I right click, go to "text filters", then "contains", then type T&P in the filter box, no records come up. I tried entering it as T&&P in the database, that didn't work.

    I also noticed that when I right click in the textbox on the form, the suggested filters say TP.

    Any suggestions would be greatly appreciated.

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    What happens if you use a wild card and put in something like T?P

    You may want to put a space after the P to ensure that something like "Tipton" doesn't show up...

  3. #3
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    Also, you could try Microsoft's "Workaround" approach, which is classic - more found at http://support.microsoft.com/kb/826763:

    To work arond this problem, do not use special characters. If you must use special characters in query expressions, enclose the special characters in brackets ([]). For example, if you want to use the greater than sign (>), use [>].

  4. #4
    dotNet is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Dec 2011
    Location
    Kansas
    Posts
    9
    Thanks for the help. The wildcard solution seems to work. Now the hard part is to get my users to remember it.

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

Similar Threads

  1. Load textbox from another textbox
    By siddel77 in forum Programming
    Replies: 12
    Last Post: 08-30-2011, 01:46 PM
  2. Filtering
    By BannedOak in forum Access
    Replies: 9
    Last Post: 05-22-2011, 02:10 PM
  3. help with filtering code
    By ninachopper in forum Access
    Replies: 14
    Last Post: 09-09-2010, 06:16 PM
  4. filtering
    By nashr1928 in forum Forms
    Replies: 12
    Last Post: 07-01-2010, 06:30 AM
  5. The ampersand sign (&) and Access reports
    By tigers in forum Reports
    Replies: 2
    Last Post: 09-28-2009, 08:23 AM

Tags for this Thread

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