ew1
04-12-2005, 12:13 PM
Hi, I'm trying to create a column from an existing column using a Instr function but I get errors for rows that have blank entries.
SELECT
PERSON.[Preferred Certificate Name],
Trim(Right([Preferred Certificate Name],(Len([Preferred Certificate Name])-Len([preferredFirstName])))) AS preferredLastName,
Trim(Left([Preferred Certificate Name],InStr([Preferred Certificate Name]," ")-1)) AS preferredFirstName,
FROM PERSON
WITH OWNERACCESS OPTION;
How can I fix this??
TIA!
SELECT
PERSON.[Preferred Certificate Name],
Trim(Right([Preferred Certificate Name],(Len([Preferred Certificate Name])-Len([preferredFirstName])))) AS preferredLastName,
Trim(Left([Preferred Certificate Name],InStr([Preferred Certificate Name]," ")-1)) AS preferredFirstName,
FROM PERSON
WITH OWNERACCESS OPTION;
How can I fix this??
TIA!