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!

dbase filter

Status
Not open for further replies.

imageres

Vendor
Jun 13, 2006
6
CA
I have written the following dbase expression intended to find all contact records containing A Detail that has either the letters "NES" or "UES" in the first three possition of the Reference field of the Detail. When using the GM dbase expression tester I get no errors but the expression just is not doing what I think that it should - any ideas??

substr("contsupp->contsupref",1,3)= "NES".OR. substr("contsupp->contsupref",1,3)="UES"

Thanks Doug
 
I'm a bit rusty on the dBASE expressions, Doug, but shouldn't the field references be referential? It looks like you're comparing the literal string "contsupp->contsupref" (NOT its contents) to the strings you're looking for.

Another thing to try is to switch to the SQL view of the filter and see what it comes up with.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'll have the roast duck with the mango salsa.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top