Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Selecting Data With an Apostrophe

Participant ,
Mar 16, 2008 Mar 16, 2008
I must be missing something simple, this apostrophe issue is getting the best of me...

I have an Access table of county names, one of them is O'Brien.

After reading all that I can find I've tried all of these queries but never get a record back. Please help I'm obviously confused.

I tried all three of these and I get zero records every time:

Lyndon

275
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 16, 2008 Mar 16, 2008
The 2nd one should have worked. Maybe it's the data. What happens when you try

where county = 'O''Brien'

that's two single quotes between the O and the B.

Also try

where county like 'O%'
Translate
LEGEND ,
Mar 16, 2008 Mar 16, 2008
The 2nd one should have worked. Maybe it's the data. What happens when you try

where county = 'O''Brien'

that's two single quotes between the O and the B.

Also try

where county like 'O%'
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 16, 2008 Mar 16, 2008
LATEST
Good call Dan. The user typed an accent` instead of apostrophe. It was very hard to see.

Thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources