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

Help with Jet SQL syntax using SUBSTRING 1

Status
Not open for further replies.

t16turbo

Programmer
Mar 22, 2005
315
GB
hi all,

I have a bit of SQL that normally works using an Oracle application:

Code:
FROM NIKU.ODF_CA_PROJECT LEFT JOIN Sub_Project ON  (SUBSTR(NIKU.ODF_CA_PROJECT.DSTI_PROJ_REF,1,6) & "-" & SUBSTR(NIKU.ODF_CA_PROJECT.DSTI_PROJ_REF,8,1)) = Sub_Project.displayProjectNo
;

does anyone know how this translates using Access Jet?
 
you have to use the MID function instead of SUBSTRING.

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top