Inserting numbers:starting from a particular given number and ends at another given number

Joined
Mar 22, 2016
Messages
14
Please provide a solution to insert continuous numbers from a given starting number to a given ending number in a report in access. for example starting number is 345251 and last number is 345726. the first record of report should start with 345251 second record 345252 and so on ,ends at 345276 for last record
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
if your doing it in excel, maybe dedicate two cell, one with the start number, the other with the end number, or the numbers of events you want to use

in VBA

Dim "your steps"

For "your steps" equal cellA to CellB step 1

"your steps" = "your steps" + 1
then wrap with
next "your steps"
 
Upvote 0
you should be able to create an auto updating invoice number field in access, long time since I have done anything like that, but as you create a new record that should work
 
Upvote 0

Forum statistics

Threads
1,221,825
Messages
6,162,165
Members
451,750
Latest member
dofrancis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top