Query using *

A

Al-GA

I want to pull a reocds of a same customer from various locations, but the
data is stores as customer name-location in one field. I know there is a way
to do it using using * at the end of the name but I dont know the code. can
anyone help?
 
R

Roger Carlson

Al-GA said:
I want to pull a reocds of a same customer from various locations, but the
data is stores as customer name-location in one field. I know there is a
way
to do it using using * at the end of the name but I dont know the code.
can
anyone help?
 
R

Roger Carlson

Quite right, assuming Customers is actually the table name and
[CustomerName-Location] is actually the field name:

SELECT * FROM Customers
WHERE [CustomerName-Location] LIKE "Smith*"

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L


Stefan Hoffmann said:
hi Roger,

Roger said:
SELECT * FROM Customers
WHERE CustomerName-Location LIKE "Smith*"
[]?


mfG
--> stefan <--
 

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