J Jon123 Registered User. Local time Yesterday, 21:21 Joined Aug 29, 2003 Messages 668 Feb 11, 2014 #1 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
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
M Mr. B "Doctor Access" Local time Yesterday, 20:21 Joined May 20, 2009 Messages 1,932 Feb 11, 2014 #2 Try: Code: If instr(1, me.step, ",") > 0 then Your code here end if
J Jon123 Registered User. Local time Yesterday, 21:21 Joined Aug 29, 2003 Messages 668 Feb 11, 2014 #3 thank you very much Mr. B worked like a charm jon
M Mr. B "Doctor Access" Local time Yesterday, 20:21 Joined May 20, 2009 Messages 1,932 Feb 11, 2014 #4 Your welcome.