Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Advice with Function


beckham
 Share

Recommended Posts

Hi could anyone please advise me on a suitable function or a way to achieve the following..

I have a field that contains a number IE: 056208639 I would like to create another field that would add "000" in front of that number automatically on all records in my database providing me with a new field showing 000056208639

 

Thanks as ever, your advise is priceless !!

Link to comment
Share on other sites

OK I managed to answer my own question. for those interested I created a the new field and used "replace field contents" with "000" & orginalfield

Link to comment
Share on other sites

Your way you will always have 000 in front of string of numbers

 

this is a better option

 

http://www.briandunning.com/cf/266

 

or better yet

 

Right("00000000000" & YourTable::YourField;11)

 

using your example 056208639 will return 00056208639

 

have ever when you roll your existing number to 100000000 it will show as 00100000000

 

Alway giving you an 11 digit number

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use