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

SUBSTR

Status
Not open for further replies.

Ruvera

Programmer
May 8, 2002
12
RU
There is in MS Access SQL function SUBSTR?

SELECT SUBSTR(381, 2, 10) AS G_381, G382, COUNT(G382) AS CNT
FROM TBL
WHERE G382 IS NOT NULL AND G381 IS NOT NULL AND LENGTH(G381) >= 10
GROUP BY SUBSTR(G381, 2, 10), G382
 
Ruvera,

try the MID function. Syntax:
Code:
Mid(string, start[, length])

HTH

Cheers
Nikki
 
Thank you very much for your help!

May be you know there is in MS Access SQL function LENGTH(STRING)?
 
Sure, Ruvera - use
Code:
LEN(String)

All functions are documented in Acees' Help file, btw - that might get you quicker results

HTH

Cheers
Nikki
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top