K
Krista H
MS ACCESS 2007, Vista
I have a search form that allows a user to search orders by company name.
One of the company's contains a pound sign (ex. MY PUD CO #1). When the # is
included I get "no search results found". I am assuming i need some special
syntax to process the # but cannot find anything for the life of me (it is
hard to search anything using a #, including this forum)
I have tried:
MyCo = Replace(MyCo, "#", "##")
MyCo = Replace(MyCo, "#", "\#")
I am at the point of dropping the # using MyCo = Rtrim(MyCo, "#") to get a
result but don't think it is the proper thing to do because it will pick up
more than they requested..... but that is better than saying "No Records
Found"
Sorry if this is a duplicate on the board, I have searched the internet and
this forum and have not found any information (I keep getting "no records
match that search" even when I spell out pound).
Thanks in advance
I have a search form that allows a user to search orders by company name.
One of the company's contains a pound sign (ex. MY PUD CO #1). When the # is
included I get "no search results found". I am assuming i need some special
syntax to process the # but cannot find anything for the life of me (it is
hard to search anything using a #, including this forum)
I have tried:
MyCo = Replace(MyCo, "#", "##")
MyCo = Replace(MyCo, "#", "\#")
I am at the point of dropping the # using MyCo = Rtrim(MyCo, "#") to get a
result but don't think it is the proper thing to do because it will pick up
more than they requested..... but that is better than saying "No Records
Found"
Sorry if this is a duplicate on the board, I have searched the internet and
this forum and have not found any information (I keep getting "no records
match that search" even when I spell out pound).
Thanks in advance