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

Query Criteria Question

Status
Not open for further replies.

cranebill

IS-IT--Management
Jan 4, 2002
1,113
0
0
US
I want to run a query via an SQL statement in VBA. The problem lies in this. Here is the entries into the field i want to sort:

2pd
2ps
3pd
3ps
4pd
4ps

Now i want to query this based on the last character... the s and the d to be exact. How would i go about this?

Bill
 
You could try something like;

SELECT Right([FieldName],1) AS Name
FROM Table
ORDER BY Right([FieldName],1);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top