Help with VBA Formula

  • Thread starter Thread starter JOHN SMITH
  • Start date Start date
J

JOHN SMITH

Hi,

I need to convert tex to a number

Example:

10 to 1
01 to 1
20 to 2
02 to 2

and so on

Thank you all,

ciao
 
Yes, well, ahem, I guess that's what happens when you don't pay enough
attention to what newsgroup you're replying to. -)
(But maybe the OP was in the wrong newsgroup too)

A VB equivalent, which will work in Access:
=REPLACE(MyString,"0","")

You may or may not want to play it safe and make sure it's coerced into a
number:
=CLng(REPLACE(MyString,"0",""))
 
Back
Top