chestera
asked on
Update a number
Hi EE
I have a problem updating a number. Problem the number starts with a character. Here is an example
C000001
D000001
R000001
They are project numbers once used they are updated by one. I tried separating the Character from the number then appending on the form but the user wants the leading zero's shown. Any help appreciated
chestera
I have a problem updating a number. Problem the number starts with a character. Here is an example
C000001
D000001
R000001
They are project numbers once used they are updated by one. I tried separating the Character from the number then appending on the form but the user wants the leading zero's shown. Any help appreciated
chestera
ASKER
matthewspatrick
Thank you for you reply. At the moment there is only one character but might change latter. I thought about using the Left() function
Alan
Thank you for you reply. At the moment there is only one character but might change latter. I thought about using the Left() function
Alan
ASKER
matthewspatrick
Is there away to detect how many characters if so problem solved
Alan
Is there away to detect how many characters if so problem solved
Alan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
matthewspatrick
Many thanks Patrick
Alan
Many thanks Patrick
Alan
ASKER
matthewspatrick
Hi Patrick sorry to trouble you
Getting error missing end bracket. I copied and pasted
SET SomeColumn = RegExpFind([SomeColumn], "\D+", 1) & Format(Val(RegExpFind([Som eColumn, "\d+", 1)) + 1, "000000")
Alan
Hi Patrick sorry to trouble you
Getting error missing end bracket. I copied and pasted
SET SomeColumn = RegExpFind([SomeColumn], "\D+", 1) & Format(Val(RegExpFind([Som
Alan
ASKER
matthewspatrick
Found it missing ] SomeColumn
Alan
Found it missing ] SomeColumn
Alan
Open in new window