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

How to TRIM the naming convention 2

Status
Not open for further replies.

bgibsonIYD

Technical User
Jun 18, 2001
28
US
I have a form, with a tab control, with a list box. In the row source of the list box I have the following code:

SELECT [Name] FROM msysobjects WHERE ((([msysobjects].[Type])=-32764)) AND ((Left([name],3)="lst"));

This code is to pull up all my reports that have the prefix "lst". Now I need to get rid of the prefix because I dont want that to show in the list box. How do I do this?

Beth Beth
**Learning Access**
 


will this do?

SELECT Right([name],Len([Name])-3) AS NameWithoutList
FROM msysobjects
WHERE (((msysobjects.Type)=-32764) AND ((Left([name],3))="lst"));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top