I need a little help with some code

Jon123

Registered User.
Local time
Yesterday, 21:21
Joined
Aug 29, 2003
Messages
668
Code:
Me.step = Left(Me.step, InStrRev(Me.step, ",") - 1)

This code works fine as long as it can find the "," but if there is no , entered it errors or. Is there a way I can look for the comma before this code runs?

jon
 
Try:
Code:
If instr(1, me.step, ",") > 0 then
             Your code here
end if
 
thank you very much Mr. B

worked like a charm

jon
 

Users who are viewing this thread

Back
Top Bottom