In this scenario we are assuming that there will be no more than 999 documents attached to a case. In Scenario 2 we assumed no more than 9999 inquires during a year. So you need to adjust the number of zeros when formatting Sequence for the anticipated number of records. Of course this can always be changed later. You also don’t need to format the sequence with leading zeros as the Format function does. As shown the expression returns something like: DCASD/CI123-025 for the 25th document in case CI123 for client DCASD. Without leading zeros it would be: DCASD/CI123-25. The advantage to the latter is that you don’t have to anticipate the number of records you might have in the sequence, but I’ve found many users prefer a more uniform number with the leading zeros.
The best way to do this is to use a primary key. In cases where a query is complex and joins several tables, we may need to use the primary key of the table that’s on the bottom of the relationship hierarchy or possible a concatenation of multiple tables’ unique key so that the expression will be unique and thus we can identify which sequential number we have assigned.
OK, so what didn’t you understand in my blog? The blog contains instructions on how to deal with this. It tells you that you do not want an LH Identifier field. It tells you that all you need is to add a Sequence field to store the Sequential number. It tells you how to base that number on the current year so it restarts with the new year, Finally it tells you how to combine the year and the sequence # with whatever else you need to display the LH identifier. These instructions are all detailed in the blog.

I put some text into the rows numbered 5 and 6, then clicked on a cell in the row labeled "5" to select that row, and pressed option-down arrow to insert a row below it. As can be seen below, the formula is copied into the new (empty) row, and calculates the correct number. The formula in the rows below automatically adjust the rest of the row numbers.


Thanks for the quick reply, I think I’m a little confused by the Display aspect of this. Artifact ID is a primary key to the table I am working in and I need it to have a unique identifier that other people can search for. The previously adopted naming convention for this ID is that which I mentioned before, Collection Point ID plus a period and then a sequential number restarting at each new Collection Point ID i.e 2-1050.1, 2-1050.2, 2-1060.1 and so on. So I think I actually need to save this in the Artifact ID field. I realize this might be slightly redundant but I’m not sure how the display would work as far as searching for specific Artifact IDs in the future.
Hi! I hope you help me with this. I have the almost same problem as #2. I have PassengerTable as table name, then I have the following fields: sequence (to follow what you have in your post), transaction_date, and transaction_ID. Basically I want the to have sequential numbering in the transaction_ID where month and date from transaction_date is shown. i also have a generate (Command27)button as trigger.Tried the code with few modifications, but it sequence doesnt populate, and doesnt show any, except for what i have in control for transaction_ID which is the “Format(transaction_date,”yyyy-mm”) & “-” & Format(sequence,”000″)” and this only shows the year and date, so instead of 2015-08-001 it shows 2015-08-.
If you use the Form Wizard, controls will be named with the field name the control is bound to. But that name can be changed. This trips up a lot of people because my code samples use a naming convention that is not what is automatically generated. So you just need to make sure you use the correct name for the object. The name is shown in the Name property on the Other tab (Not the Caption property). To determine what field in your table the control is bound to check the ControlSource property. It should be bound to the PONum field.
Next we will look at scenario 2. The variation here is that Apex wants to start each year with anew sequence of numbers. Also, they want to include the year when displaying this number. We still use a DMax, but we need to add criteria to determine the year. So Apex needs to have a field in their table that indicates the date. Generally, such inquiries will have a date/time stamp to indicate when received or the user will input the date and time. So we will assume there is a field in record called InquiryDate. We will also add an Integer field named Sequence. On the form we will add a control bound to Sequence, but set its Visible property to No. The line of code will look like this:
Some sequential exits are renumbered (remaining sequential) due to added exits. For instance, the Hutchinson River Parkway in New York was renumbered so that its northernmost exit, 27, became 30. However, the Merritt Parkway, which continued the Hutchinson's exit numbers in Connecticut, was not renumbered. This means the Route 120A interchange is numbered 27 in Connecticut and 30 in New York.
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.
In the Republic of Ireland, junction numbers have existed since the opening of the first section of the M50 motorway in 1990, however due to the short length of Irish motorways until the early 2000s they were normally ignored by the general public. They are beginning to come into popular usage now, and since 2005 have been given greater prominence on road signs. With the development of the inter-urban motorway network under the National Development Plan and Transport 21, the National Roads Authority has adopted a numbering scheme for the inter-urban roads that will see Junction 1 being designated as that road's junction with the M50 in most cases. This has meant renumbering of existing junctions on some motorways, most notably the M7 motorway. Non-motorway dual carriageways forming part of major inter-urban roads also have junction numbers, however only grade-separated interchanges are numbered.

Ok, generating a random 3 digit number is a whole different thing, so I’m not going to go into that. If you want your numbers to start at 100 (to insure three digits) then change the 0 to 99. The Nz function will return the value listed if the field is Null. So the first time you execute that code, the DMax should return a Null since no numbers have been generated for the PONum field. The Nz will then substitute 99 and then increment that by 1. You can accomplish something similar by just entering 100 as the PONum for one record. .
As more highways were built, states and countries began to experiment with distance-based (mile-based or kilometer-based) exit numbers. The first mile-based system known was implemented on the Garden State Parkway in New Jersey in the late 1950s. Michigan also implemented mile-based junction numbers on Interstate 94 in the 1960s. In this system, the number of miles from the beginning of the highway to the exit is used for the exit number. If two exits would end up with the same number, the numbers are sometimes modified slightly; this is often impossible and exits are given sequential or directional suffixes, just as with sequential numbers.

There is no exit zero. If there is an exit within 1.499 km of the origin, Exit 1 is used. Exit 2 would be between 1.500 and 2.499 km of the origin. Subsequent 'exit zones' are at 1 km intervals. Letter suffixes are added at multi-exit interchanges, or where two or more exits exist within the same exit zone. For example, State Highway 1 (Southern Motorway) has an Exit 429A (Symonds St), Exit 429B (Wellesley St) and Exit 429C (Port). Instead of replacing existing ramp and link signs, the exit numbers were added as supplementary information. Thus drivers can navigate either by exit number or name. Exit numbers are only used for exits that may be used by all vehicle types. Bus- or emergency vehicle-only exits would not be numbered.
Alan is a semi-retired geek from England, who has lived in Sweden with his wife and family since 2001. His interest in computers began in the mid 1980’s with the introduction of the Commodore Vic 20 where he learned to hack game code so he could force his name to appear as the high scorer. Alan made his way through the horde of console computers in the late 80’s and early 90’s before settling on Windows with the release of Windows 3.1. He has worked in the broadband industry on both the technical and installation side. In his off time he enjoys building computers for family and friends as well as digging into the guts of the OS to customize and tweak the OS.
Because invoices are not actually required under U.S. law, the creation of an invoice is only done at the discretion of the business. If you are dealing only with domestic clients and have an alternative method of tracking your business transactions, then a properly numbered invoice is not a necessity. However, as mentioned before, invoice regulation is very common in other countries – particularly those in the EU. Be sure to check the laws and regulations of any other country that you may be doing business with in order to stay compliant and avoid any trouble for you or your customers.
Scott, you’ll need to be more specific to help me. When you say “put this code behind a save button” what exactly does that mean – where do I type the code you provided? Yes, I do have a Save Button, which saves the record and closes the form (but currently has no way to save the next sequential Project ID). I want show this next Project ID (number on the entry form) and have that new number flow to the table along with the other data on the form.
Both the United Kingdom and the Republic of Ireland use sequential numbering systems, with the junction number indicated by a white number in a black square in the corner of signs. In the United Kingdom they are frequently referenced in the media as the number with "J" on front of it, with for example Junction 1 being referred to as "J1". If a junction is newly constructed to between two existing junctions, it is normally allocated the number of the lower of the two junctions, with the letter "A" attached (and so on). For example, a new junction opened between junctions 3 and 4 would become Junction 3A.
There is no exit zero. If there is an exit within 1.499 km of the origin, Exit 1 is used. Exit 2 would be between 1.500 and 2.499 km of the origin. Subsequent 'exit zones' are at 1 km intervals. Letter suffixes are added at multi-exit interchanges, or where two or more exits exist within the same exit zone. For example, State Highway 1 (Southern Motorway) has an Exit 429A (Symonds St), Exit 429B (Wellesley St) and Exit 429C (Port). Instead of replacing existing ramp and link signs, the exit numbers were added as supplementary information. Thus drivers can navigate either by exit number or name. Exit numbers are only used for exits that may be used by all vehicle types. Bus- or emergency vehicle-only exits would not be numbered.
First, you have to use YOUR field and control names. The ones I use are samples. The error you are getting indicated you do not have a control named txtProject. So you have to substitute the correct name of the control. bound to the ProjectID field. By the way it is not a good idea to the octothorpe(#) as part of a field name. A controlname may be different from a fieldname. The name property of a control is on the Other tab in the Properties dialog.
i’ve had to do tons of this lately and found that for the amounts of tickets being done (e.g. 7000 x 10 tickets + cover & mailer) that chuckT’s solution almost 2 years ago is similar to what i use. would be interested to know if others doing similar VDP are using a wholly indesign/excel solution, or if specific VDP software such as XMPie are being used.
×