String Help

  • Thread starter Thread starter scott
  • Start date Start date
S

scott

I have a string like 1.0.1 that I need to increase the last digit to 1.0.2
for example.

How can I isolate the last digit after the 2nd period in a string like
"1.0.1"?
 
LastDigit = Right("1.0.1", Len("1.0.1") - InStrRev("1.0.1", "."))
 
eval(mid(string,instr(instr(1,string,".")+1,string,".")+1) + 1)
 
I have a string like 1.0.1 that I need to increase the last digit to 1.0.2
for example.

How can I isolate the last digit after the 2nd period in a string like
"1.0.1"?

I presume you would also want 3.24.109 to increment to 3.24.110?

Note that you may want to consider using three Integer fields rather
than one composite text field.

John W. Vinson[MVP]
 

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

Back
Top