Sep 12, 2002 #1 ddbrook Programmer Joined Aug 19, 2002 Messages 17 Location US I have a text field but outputs numbers... I need the leading 2 zeros taken off. I have tried trim. I have a query and my data outputs like this: Meter #, 0054641 I need it to look like: 54641 Please help... Thanks, ddbrook
I have a text field but outputs numbers... I need the leading 2 zeros taken off. I have tried trim. I have a query and my data outputs like this: Meter #, 0054641 I need it to look like: 54641 Please help... Thanks, ddbrook
Sep 12, 2002 #2 OhBother30 Technical User Joined Feb 25, 2002 Messages 14 Location US =right([meter #],4) Upvote 0 Downvote
Sep 12, 2002 #3 snoopy75 Technical User Joined Aug 24, 2001 Messages 340 Location US Wouldn't it be =right([meter #],5)?? Upvote 0 Downvote
Sep 13, 2002 #4 pgk Programmer Joined Jul 19, 2002 Messages 262 Location US Hi, Try the following code. It will remove all leading zeroes. Do While (Left(Text1, 1) = 0) Text1 = Right(Text1, Len(Text1) - 1) Loop Hope it helps. Let me know what happens. With regards, PGK Upvote 0 Downvote
Hi, Try the following code. It will remove all leading zeroes. Do While (Left(Text1, 1) = 0) Text1 = Right(Text1, Len(Text1) - 1) Loop Hope it helps. Let me know what happens. With regards, PGK