mmmmm im confused. This is the SQL area, one would think you are refering to an SQL function, are you?. I am not aware of an SQL inStr function, however:
InStr is a VBScript function (yes it does take 4 argument however two of them are optional:
InStr([start, ]string1, string2[, compare])
Additionaly, I believe Left is a function in both languages:
LEFT (character_expression , integer_expression)
Returns the left part of a character string with the specified number of characters.
BTW if you want the SQL equivalent of inStr you may want to use:
SUBSTRING:
Returns part of a character, binary, text, or image expression.
Syntax
SUBSTRING ( expression , start , length )
Wind is your friend
Matt
|