Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

like operator 1

Status
Not open for further replies.

jshanoo

Programmer
Joined
Apr 2, 2002
Messages
287
Location
IN
Hi,
I have this following query as follows:
----------------------
SELECT Contract.ContractID, Contract.ClientName, Contract.Phone, Contract.contractDt
FROM Contract
Where trim(phone) = '888%'
-----------------------
there are records starting with 8888

but the when i am firing the query it is retruning only zero records

can please tell me where the problem is ?


thanks john


*** Even the Best, did the Bad and Made the Best ***

John Philip
 
Code:
SELECT Contract.ContractID, Contract.ClientName, Contract.Phone, Contract.contractDt
FROM Contract
Where trim(phone) like '888%'

if you are using the Jet OleDB provider

Code:
SELECT Contract.ContractID, Contract.ClientName, Contract.Phone, Contract.contractDt
FROM Contract
Where trim(phone) like '888*'

if you are using the access driver
 
Thanks Boogie
It worked

John

*** Even the Best, did the Bad and Made the Best ***

John Philip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top