Select names from Field data containing Hyphen



I have an MS ACCESS 2000 database with 9000 lastnames and some are hyphenated.

I want to pull 250 records for lastname "SMITH" andahigher, the first
record it pulls is "SMITH-JAMES" (with the hyphen) then skips the other
SMITH and goes on to SMOOT. I found double quotes work with apostrophies and
confirmed that works, but the Hyphen does not and with some many people
having hyphenated names it seems this is generally a problem.

How can I select this. I have tried

Select top 250 lastname, firstname from PNames where lastname >= '" &
"SMITH" & "'"
Select top 250 lastname, firstname from PNames where lastname like '" &
"SMITH" & "*'"
Select top 250 lastname, firstname from PNames where lastname like '" &
"SMITH" & "%'"

It totaly skips all of the Plain Smiths, returns my first record is
SMITH-JAMES then the next one is SMOOT.
.



Relevant Pages

  • RE: How do I set up a value based on another boxs value in access
    ... etc. that holds all the personal records. ... I can pull all kinds of reports ... first and last name (Bob Smith) but b/c these are two different fields, ...
    (microsoft.public.access.forms)
  • Re: 60V DC dangerous?
    ... Smith) Gave us: ... human in the world is fast enough to pull away during zero crossing as ... it happen 60 times in one second, and your nerve impulses don't even ...
    (sci.electronics.design)
  • Populating subject with data from fields in form
    ... My grasp of VB is well, crappy at best. ... Please bear with me. ... looking to pull a value from my form into the subject line. ... I want 'Smith' to be put in the subject line automatically. ...
    (microsoft.public.outlook.program_forms)
  • Pull First Name
    ... Hi all...this seems relatively easy, ... A1 = Smith, Mike ... I would like to pull just the first name. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Pull First Name
    ... > Hi all...this seems relatively easy, ... > A1 = Smith, Mike ... > I would like to pull just the first name. ...
    (microsoft.public.excel.worksheet.functions)