Help with filter

R

Rick C.

Can someone suggest how I can display only those rows where the two
rightmost characters in Field1 are 'P1'? Thanks much.
 
K

Kevin @ 3NF

Include a Where clause in your query similar to:

WHERE (((Right([MyTable]![MyField],2))="P1"));
 
K

Kevin @ 3NF

The field referenced in the RIGHT function needs to be the field that has
the P1 in it....is KeyID that field?

--
Kevin Hill
3NF Consulting
www.3nf-inc.com/NewsGroups.htm



Rick C. said:
Thanks for this. I got the query to work once I got onto comfortable
turf, in SQL view, rather than the 'easy' graphical interface. I
originally thought a filter would work well, so in the Field row I
entered

Expr1: Right("keyid",2)

and then in the Criteria row I entered "P1"

It returns 0 rows, so I must be doing something wrong. Any hints would
be appreciated.


Include a Where clause in your query similar to:

WHERE (((Right([hsbosdb01_old]![keyid],2))="P1"));

--
Kevin Hill
3NF Consulting
www.3nf-inc.com/NewsGroups.htm



Rick C. said:
Can someone suggest how I can display only those rows where the two
rightmost characters in Field1 are 'P1'? Thanks much.
 

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