Sep 12, 2002 #1 ddbrook Programmer Aug 19, 2002 17 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 #3 snoopy75 Technical User Aug 24, 2001 340 US Wouldn't it be =right([meter #],5)?? Upvote 0 Downvote
Sep 13, 2002 #4 pgk Programmer Jul 19, 2002 262 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