I have a field named [Stations] in my table, in which resides the names of our service stations I.e. “A Westport Cooperative Services”, “B Westport Cooperative Services”, “Spectrum Home Health”, “Don Bosco Center” etc.
I want to filter by station, so in the criteria line of the query (which is embedded in a report) I can type any of these stations, run the query and it will be filtered….except for “A Westport Cooperative Services”. For some reason with this station no records come up. I can type in “B Westport Cooperative Services” or any other station and get those records just fine.
The first word in “A Westport Cooperative Services” is the letter “A” and I suspect that this is a reserved Access character and herein lies my problem.
To solve this - in the criteria field I type in Not “Spectrum Home Health” And Not “Don Bosco Center” and so forth until I’ve typed Not for every station we have except for “A Westport Cooperative Services” and that would be the only station left, and I get my answer.
Would anyone have a solution to the first word being the letter “A” and screwing up the criteria line? I have tried the following:
Like ("*") & [Enter any part of the Description] & ("*")
Like ("*") & "A Westport Cooperative Services" & ("*")
I’ve tried brackets, brackets with quotation marks and just about everything I could think of…all with no luck.
I do not have the luxury of changing the station’s name to something else.
This little Access query quirk is driving me nuts. I’m using Access 2010.
Good grief!
Bill
I want to filter by station, so in the criteria line of the query (which is embedded in a report) I can type any of these stations, run the query and it will be filtered….except for “A Westport Cooperative Services”. For some reason with this station no records come up. I can type in “B Westport Cooperative Services” or any other station and get those records just fine.
The first word in “A Westport Cooperative Services” is the letter “A” and I suspect that this is a reserved Access character and herein lies my problem.
To solve this - in the criteria field I type in Not “Spectrum Home Health” And Not “Don Bosco Center” and so forth until I’ve typed Not for every station we have except for “A Westport Cooperative Services” and that would be the only station left, and I get my answer.
Would anyone have a solution to the first word being the letter “A” and screwing up the criteria line? I have tried the following:
Like ("*") & [Enter any part of the Description] & ("*")
Like ("*") & "A Westport Cooperative Services" & ("*")
I’ve tried brackets, brackets with quotation marks and just about everything I could think of…all with no luck.
I do not have the luxury of changing the station’s name to something else.
This little Access query quirk is driving me nuts. I’m using Access 2010.
Good grief!
Bill