duplicates query

  • Thread starter Thread starter Guest
  • Start date Start date
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 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!
 
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

Similar Threads

Access Creating names from fields in access database. 0
Combo Box 2
Query 2
Displaying two fields in combo box 8
How do I combine 2 fields into 1 3
question about running a comparison query 2
DLookUp or SELECT 2
default value 8

Back
Top