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

Query to remove first 4 characters in table

Status
Not open for further replies.

3Mark3

Technical User
Nov 30, 2005
48
US
Does anyone know how to setup this query? I'm trying to find out how to delete the first, say 5 characters. Example would be

Pre-qry
0001974668845

post-qry
74668845
 


Hi,
Code:
Right([YourField], Len([YourField])-5)


Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue]
 
Why not simply this ?
post-qry: Mid([Pre-qry],6)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top