Query Data With....

Z

zyus

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
 
W

wangaiguo

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 '%-%'
 
A

Albert D. Kallal

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

Top