duplicates query

G

Guest

I have an Access table that the info was imported from another program. I
have a field named [Company] and fields named [FirstName] [LastName]. Some
of the records because of the other program have the contact name as the
company name. I am looking for a query (language) that will find the records
where the [Company] is equal to the combined fields of [FirstName],[LastName]
or [Company] begins with [FirstName]. Is this possible? I am an
intermediate user.

Thanks!
 
S

Smartin

S said:
I have an Access table that the info was imported from another program. I
have a field named [Company] and fields named [FirstName] [LastName]. Some
of the records because of the other program have the contact name as the
company name. I am looking for a query (language) that will find the records
where the [Company] is equal to the combined fields of [FirstName],[LastName]
or [Company] begins with [FirstName]. Is this possible? I am an
intermediate user.

Thanks!

SELECT * FROM YourTable
WHERE [Company] LIKE [FirstName] & '*';

will catch both conditions.

Hope this helps!
 
G

Guest

Awesome!! Thanks Much

Susie

Smartin said:
S said:
I have an Access table that the info was imported from another program. I
have a field named [Company] and fields named [FirstName] [LastName]. Some
of the records because of the other program have the contact name as the
company name. I am looking for a query (language) that will find the records
where the [Company] is equal to the combined fields of [FirstName],[LastName]
or [Company] begins with [FirstName]. Is this possible? I am an
intermediate user.

Thanks!

SELECT * FROM YourTable
WHERE [Company] LIKE [FirstName] & '*';

will catch both conditions.

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top