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

Wild card in selection range

Status
Not open for further replies.

back2tek

Technical User
Jan 12, 2006
64
US
Hi all,
Using Cr9 on SQL. I am trying to filter the records selected using a formula like:

({name} >="ABC123TOR" and {name}<="ABC999TOR")

I need to use a wild card in the selection formula,
like
({name} >="AB*123TOR" and {name}<="AB*999TOR")

How can this be achieved ?

Thank you for your thoughts,
BT
 
You're asking it to sort ABZ1 ahead of ABA9, I can't see how it could.

What you could do is select on portions of the field. Try using Left({your.field}, 2) and MID({your.field}, 4, 6) as separate selections.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top