Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7320 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi Guys,

I've got a small problem:

Got a Global field giving me an Invoice Nr. now I would like to make it look better, instead of just "1" I would like it to be "0001", "0002"..."0010" etc. I've also got a Date conbined in it, like this:

 Right( "0000" & Year ( Get ( CurrentDate ) )  &  Right (  Month ( Get ( CurrentDate ) ); 2 ); 4 )  & RGNr::RGNr & "-1" 

its the "RGNr::RGNr" wich is a global field to be formated. The example shown looks like this now: "04111-1" to be: "04110001-1 Is this possible in a calculation?

Thanks!

Posted

I'm so thick, I've got it! blush.gif

Sorry, just ignore this Post!

It looks like this now: cool.gif

 Right( "0000" & Year ( Get ( CurrentDate ) )  &  Right (  Month ( Get ( CurrentDate ) ); 2 ); 4 ) & Right("0000" & RGNr::RGNr; 4) & "-3" 

This topic is 7320 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.