Instead of working harder than you need to, insert a one-column table with as many rows as necessary to accommodate your list. Then, using Word's numbering feature, number that column. Finally, convert the table to text. The resulting list is a fixed numbered list, so you'll have to live with its limitations; when you can do so, this method definitely beats most alternative solutions.

Basically, the only difference is that we now maintain a VBA.Collection, and this time we do make use of the UniqueKeyVariant parameter, using it as a key to locate the previously assigned number. If we don’t find it, we add to the VBA.Collection. The SQL to use those 2 functions remains identical. The downside is that if the query generates millions worth of rows, the memory may run out due to a large VBA.Collection. However, if a form is bound to that large dataset, it will likely have several other problems anyway so VBA.Collection should not be a problem for forms that loads a few hundred rows. The other downside is that VBA.Collection will persist indefinitely even long after the query has “finished.” Back to form example, you might need to remember to call the ResetRowNumber() function on a form’s close to ensure that you dispose of the VBA.Collection and free up the memory.

Being able to give your files sequential numbers is all very well but file names like document1, document2 etc. are not exactly very descriptive are they? I use BulkRename (free) which allows you to add and or remove prefixes and postfixes and indeed other info to your selected file names. For example if you want to replace all underscores (_) in a filename with spaces, all you do is this: In Group 3 simply enter an underscore in the Replace box, and enter a space in the With box. Then highlight all your filenames (mouse, keyboard, Ctrl+A etc.). In the “New Name” column you will see what the new name is going to look like, for each and every file you have selected. The rest of the boxes are all very similar. The number beside each box merely denotes the sequence in which they are processed. For example, the program will make any replacements (Group 3) before it changes case (Group 4). The only real exception to the above rules is Group 12. This governs which files/folders are going to be displayed on the screen. The interface can look a bit bewildering when you first see it but once you calm down and actually start looking at the boxes, it all becomes crystal clear!

Scott, trying my best to have sequential numbering almost identical to your scenario 1 (bound control on input form which increments last number by 1). Where do I enter this code? I have a form which opens and is ready for entry of new Project Designs. I want to show in the control box the next Project ID (a number) so do I place the code, Me.txtProject ID = Nz(DMax(“[Project ID]”,”DESIGN PROJECTS”),0)+1, under On Load, After Update, or where? And also, the Me.Dirty = False or DoCmd.RunCommand
There are also other problems – for one thing, it’s not a very generic solution. You must customize several parts to work for different queries. If the set of tables used in the outermost FROM clause are different, to be the innermost FROM clause, you have to adjust the WHERE clause to reference the correct primary key (or some combination thereof). Then you have to also keep the ORDER BY in sync. That’s a lot of tweaks if you want to use it for different queries. That is why this is the last method listed here but it is one possible solution.
The blog is pretty much step by step. Where it may not be that specific is, because, these are decisions the developer needs to make. For example, where to put the DMax expression is a matter of your workflow so I can’t tell you where to put it. I’ve given tips in the blog to help you decide. If you are having issues, then please give me more info about your application and I can suggest things.
An exit can be numbered by where the exit in the direction of increased mileage leaves the freeway, or by where the road that the exit serves crosses the freeway (which is occasionally ambiguous). From this number, the integer exit number can be determined by rounding up, rounding down, or rounding to the nearest integer. Many jurisdictions prefer to avoid an exit 0.[citation needed] To this end, the numbers are either rounded up to get the exit number, or any exit that would get the number 0 is instead numbered 1. Examples of highways with an exit 0 are British Columbia Highway 1 on the mainland, Interstate 70 in Wheeling, West Virginia along the West Virginia–Ohio border, and Interstate 90 on the Montana side of the Idaho–Montana border.
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.
The last option that we’ll present for assigning invoice numbers is according to project number. This is most useful for companies that take on projects where that number is the most important reference for the work. These invoice numbers will include the project number, customer number, and sequence number, with the sequence number at the end. An invoice numbering system organized by project could either begin with the customer number:
Search sequential numbering and thousands of other words in English Cobuild dictionary from Reverso. You can complete the definition of sequential numbering given by the English Cobuild dictionary with other English dictionaries : Wikipedia, Lexilogos, Oxford, Cambridge, Chambers Harrap, Wordreference, Collins Lexibase dictionaries, Merriam Webster ...

In the example I explained, I was using a list, but did it with un-linked text boxes using “continue from previous number” and “continue numbers across stories.” I’m guessing that there is no way to tell InDesign that even though there are 4 text boxes on the page, that there are two different lists? I’d probably have to just create two threaded stories for that scenario to work.
John, Sorry for the delay, but I was away last week with limited Internet access. I assumed if you had a Save button, you would know how to put code behind it. To see the code behind a button, Select the button in Form Design Mode and open the Properties Dialog (Right click and select properties), on the Events tab there should be something in the On Click event of the button. If you click the Ellipses […] next to the event, it will open Code Builder where you can enter the code.
Scott, I was able to try this as I assumed that is what I needed to do. It does not work. First, the current macro for that button is a Save Record, Close Window operation. How could I keep this and also add Code? If I just add a new button to the form and under the On Click Event put the code you suggested, I get a compile error of “method or data member not found” and ” .txtPROJECT” is highlighted. The actual field is “PROJECT ID#” and it is a long integer number. Entry I have is: Private Sub Command88_Click()
The main expressway system uses sequential numbering; Metropolitan Expressway systems also use sequential junction numbeing, usually appended with the expressway number expressed thus: 5-1; 5-2, etc. There are multiple toll expressways not operated by the major national syndicates or the Metropolitan Expressway Authorities that have no junction numbering scheme.
For whatever reason, AllExperts did not let me post a direct reply to your response re: “Ok, what is the ControlSource of the Fixture Number control? It should be: =cboZone & “-” & Format(Me.FNumber,”000″)” and adding “Me.Refresh” to my code (within the last 10 minutes). It just had the “rate this reply”. I added the Me.Refresh and corrected my location of the =cboZone code and it works correctly now.
You can change the numbers in the list by restarting the sequence or by specifying a new start number. You can change the list's style. You can do anything to this list that you can do to a normal numbered list because it is a numbered list, with one exception: the list, while easy to format, is fixed. If you delete an item, the list updates accordingly, but I haven't found a way to add numbers.
×