G
Guest
In an access query, i need to parse out everything to the left of the dash.
I know that it can be done using the left() function. Using a hardcoded
number to determine the length of the parse works fine
(left("432-45",3).
However i cannot assume that there will always be 3 digit to the left. I
tried embedding the instr() function
(left("432-45",instr("432-45","-")-1),
but it does not work. For some reason, access cannot use the result of the
instr() function, neither while embedded or if I store it in another
variable. It just doesn't like it....
Can You Help?
RLiss, Knowles Electronics
(e-mail address removed)
I know that it can be done using the left() function. Using a hardcoded
number to determine the length of the parse works fine
(left("432-45",3).
However i cannot assume that there will always be 3 digit to the left. I
tried embedding the instr() function
(left("432-45",instr("432-45","-")-1),
but it does not work. For some reason, access cannot use the result of the
instr() function, neither while embedded or if I store it in another
variable. It just doesn't like it....
Can You Help?
RLiss, Knowles Electronics
(e-mail address removed)