Query Data With....

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I hv this table

Cust ID
A 123-45
B 123344
C 1-2-45
D 1 2227

Q,

How to find cust ID with - only or those with spaces

Thanks
 
zyus said:
I hv this table

Cust ID
A 123-45
B 123344
C 1-2-45
D 1 2227

Q,

How to find cust ID with - only or those with spaces

Thanks


select * from tablename where id like '%-%'
 
zyus said:
Tried...but failed..


Try:

select * from tablename where id like "*-*"

Depending on your ms-access settings, % is not always considered a wild
card....
 

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

Top 20 1
Running Sum In Query 2
Show records from diff table 3
Problem with my Dlookup 5
Querying the last order 6
Getting a value by comparing 2 columns 1
Sumproduct or ????? 4
Query Number Of Character 3

Back
Top