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",""))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Running Balance in Access 1
VB.NET Datasets 0
Excel Help with dates 2
Determining an overlap in time between lines 3
Excel VBA 1
How to Convert MBOX to PST Online? 3
Using DateAdd and IIF conditions in a Query 2
Total 3

Back
Top