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

Purchase order number Generator???


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

Recommended Posts

Hi all, I am working on a PO sheet for my work. I am wanting the PO number to be generated with the current date and then a 2 digit number after it. Starting with 01. I would like for the value to reset to 01 at the beginning of each day with just the date part of the PO changing to the new date. Any help or suggestion would be great. Thanks in advance.

Example 5030201 for first po today, 5030202 for second,5030203, 5030204 etc. Then tomorrow would like for it to then be 5040201 and so on.

Link to comment
Share on other sites

Simple. 2 fields required with one relationship.

CreationDate, AutoEntered Creation Date

SequenceNumber, Number, AutoEntered Calc (Max ( Self by CreationDate::SequenceNumber) + 1)

PONumber = Substitute ( datetotext ( CreationDate ), "/", "" ) & Right ("00" & SequenceNumber, 2)

The Substitute function strips the "/" out of the date and the Right function pads the number so that you get a leading zero if it is a single digit number.

Link to comment
Share on other sites

Sorry to keep bugging you, but I keep having a problem with the sequence number field. When I go to put it in it tells me if can't find the field ( Self by CreationDate::SequenceNumber) ..... I know it is probably something I am missing or doing wrong. Any help would be great. Thanks again

Link to comment
Share on other sites

Hey thanks for all your help and I think I am almost there. I am getting a message when I enter the Auto entered calc in the sequence field that says Field could not be used here it would cause a circular definition. Any help?: I thought I still might not have my relationship set up correctly??? But if in the auto entered selection I can choose the relationship Self by creation and it inputs it just like you have stated. Well if nothing else I have learned a great deal. Thanks for all your help and any more you can send my way.

One more thing that might help is that it is generating the po fine except for that the sequence number does not reset when the date changes.

Link to comment
Share on other sites

This topic is 8188 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.