Mark,
um no... I mean are you using MS SQL Server (sql 7 or 2000). I'm not altogether positive that the SUBSTRING( ) function works in Access - never tried it. However, the syntax you entered before is practially letter for letter like the examples in SQL servers documentation. Maybe someone else out there can verify if SUBSTRING( ) is valid in Access? Mark -----Original Message----- From: Mark Leder [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 8:06 AM To: CF-Talk Subject: RE: Substring function in query The data is being pulled from Access, so yes. Mark -----Original Message----- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 12:47 PM To: CF-Talk Subject: RE: Substring function in query Mark, Your example is exactly like the one in SQL books online. You ARE using ms sql? Mark -----Original Message----- From: Mark Leder [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 7:38 AM To: CF-Talk Subject: Substring function in query When I construct the following SQL statment, I get an undefined function error. I'm trying to extract the first letter of the Botanical_Name colu mn (full text string) and create an alias column (of A, B, C, D, etc). What am I doing wrong? SELECT f_ID, Common_Name, Botanical_Name, SUBSTRING(Botanical_Name, 1,1) AS Alpha1 FROM p_FloralContent ORDER BY Botanical_Name ASC Thanks, Mark _________________________ _________________________ ____________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists _________________________ _________________________ ____________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

