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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

greater than '*p' 2

Status
Not open for further replies.

acent

Technical User
Feb 17, 2006
247
US
I have a report that prints out PO shippers with the following where clause:
Code:
WHERE (((po.poNumber) Like '*P' Or (po.poNumber) Like '*Q') AND ((po.trackingNo)=" & Globals.trackingNo & "));

All works well, except in the extreme case more than 2 POs for that one job. My question is, is it possible to change the above to something like:
Code:
WHERE (((po.poNumber) Like > '*O') AND ((po.trackingNo)=" & Globals.trackingNo & "));
to print out any POs with a P, Q, R, S..., or is there a better way to go about something like this?

Anwy help is appreciated.

"God is a comedian playing to an audience too afraid to laugh."
-- Francois Marie Arouet (Voltaire)
 
Perhaps you can use Right?
WHERE Right([poNumber],1) >= 'O'
 
or
Code:
WHERE po.poNumber Like "[P-Z]*"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top