473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How can I get consecutive invoice numbers to enter automaticly

I am completly new to Access.
I need a field to automaticly enter invoice numbers that run
consecutive.
For example records starting with an invoice # 1276, would autmaticly
go to #1277 and #1278 onthe next record.
I understand the autonumber, but would like to have a specific
starting point
thanks in advance
Nov 12 '05 #1
2 4359
You shouldn't use AutoNumbers for this purpose anyway... they are not
guaranteed to be monotonically increasing as you describe, anyway, only
"unique".

You can write VBA DAO code that will use the DMax domain aggregate function
to create your own, monotonically-increasing number. I'd bet you could even
find that code if you'd search the archive of this newsgroup at
http://groups.google.com.

Larry Linson
Microsoft Access MVP
"Iwilfix" <iw*****@monmouth.com> wrote in message
news:fj********************************@4ax.com...
I am completly new to Access.
I need a field to automaticly enter invoice numbers that run
consecutive.
For example records starting with an invoice # 1276, would autmaticly
go to #1277 and #1278 onthe next record.
I understand the autonumber, but would like to have a specific
starting point
thanks in advance

Nov 12 '05 #2
That is greatly appreciated Larry, but I was looking more towards the"
for dummies " answer. I did try the google group but got a little
frustrated. But thanxOn Wed, 05 Nov 2003 05:31:38 GMT, "Larry
Linson" <bo*****@localhost.not> wrote:
You shouldn't use AutoNumbers for this purpose anyway... they are not
guaranteed to be monotonically increasing as you describe, anyway, only
"unique".

You can write VBA DAO code that will use the DMax domain aggregate function
to create your own, monotonically-increasing number. I'd bet you could even
find that code if you'd search the archive of this newsgroup at
http://groups.google.com.

Larry Linson
Microsoft Access MVP
"Iwilfix" <iw*****@monmouth.com> wrote in message
news:fj********************************@4ax.com.. .
I am completly new to Access.
I need a field to automaticly enter invoice numbers that run
consecutive.
For example records starting with an invoice # 1276, would autmaticly
go to #1277 and #1278 onthe next record.
I understand the autonumber, but would like to have a specific
starting point
thanks in advance


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Adam | last post by:
Hi, I am trying to mark consective numbers in a data set and get a count as to how many consecutive numbers exist in the a given line of data. Here is an example line: 3, 5, 7, 9, 10, 13,...
3
by: RR | last post by:
We have cards that are numbered consecutively. These cards are given out to different people in different sized batches. One group might get 5, the next group might get 20. What is a good...
2
by: groupware | last post by:
Hi, I have seen some really useful ways of identifying or counting consectuve numbers using vba fucntions and/or SQL. However what appears to be the case is that these all deal with fields...
15
by: NomoreSpam4Me | last post by:
Hi there i have a little problem with my invoice. Here it is: i have a main menu with buttons, one of my button is "Create new invoice", when click on it a form pop up so i can enter my...
3
by: abadi | last post by:
I have ready invoices and I want to enter the invoice information in a form then print the entered information on the invoice. The enter information is not stored in the database. I tried to make a...
1
by: adamdistefano1 | last post by:
Hello, I am a total noob when it comes to access and VBA, i was wondering if you guys could help me with a few things. Firstly, im creating an invoice application in access. I need some help...
1
by: Mike | last post by:
Hi All, I'm using vb.net as my codebehind lang. and the following code is being executed in my aspx.vb page to stamp a DB row. Dim oStatsInfo As New StatsInfo(CartID, Batch, Set, Num, 0, 0, 0,...
3
by: mlb992000 | last post by:
I am creating an invoice with a subform. I have a table with the vendor info and an invoice table. I am able to create a form that will pull up all the information on a particular vendor when I...
12
by: Coni | last post by:
Hi All, I am working in Access to print Invoices. On each invoice there is a line number column which is a field to number each line for a product purchase. I would like to know if there is a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.