473,398 Members | 2,427 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,398 software developers and data experts.

Autonumber

I have a Request ID populate by AutoNumber. When the used
enters Log A New Request, we want the next sequenced AutoNumber to become visible (these are program assignements) so that the user can inform the programmer of the next program assignment number. I can not seem to make the AutoNumber visible. The only this that shows up in the field box is "AutoNumber". How can I make the next sequentail AutoNumber visible on log a new request?

Thanks!

Jake
May 13 '08 #1
4 1322
missinglinq
3,532 Expert 2GB
I'm sorry, but I'm not sure of what you're actually saying. The actual AutoNumber will only become "visible" when a new record is initiated , i.e. when the first character is entered in any field of the new record.

Linq ;0)>
May 13 '08 #2
I'm sorry, but I'm not sure of what you're actually saying. The actual AutoNumber will only become "visible" when a new record is initiated , i.e. when the first character is entered in any field of the new record.

Linq ;0)>
Do you mean upon entering a new request that that auto number will not become visibile until after the record is entered? Thanks! And these no way to determine the last record id and increment that value to generate the next auto number. Thanks again!
May 13 '08 #3
NeoPa
32,556 Expert Mod 16PB
Do you mean upon entering a new request that that auto number will not become visibile until after the record is entered?
Yes.
And the[re's] no way to determine the last record id and increment that value to generate the next auto number.
That is possible. It is not consistent with using AutoNumbers though. It's also a little messy if ever you want the process to be multi-user.
May 14 '08 #4
missinglinq
3,532 Expert 2GB
As NeoPa indicated, you can determine the last AutoNumber generated, but adding one to that won't necessarily yield the next AutoNumber Access will generate! Any record that's deleted will leave a gap as will hitting <Esc> after starting a record. Adding records using an Append Query may leave a gap, often a huge one. All of these things can foul up any hack to retrieve the "last" number and add one to it to dsetermnine the "next" AutoNumber.

If, for example, the record with the AutoNumber 1001 is deleted, you then retrieve the last AutoNumber in the table, which is now 1000, and add one to it, you'll get 1001, but in actuality Access will generate 1002.

What, exactly, do you mean by "Entering a new request?"Linq ;0)>
May 14 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ilan Sebba | last post by:
I have a 'supertype' table with only one field: autonumber. Call this table the 'parent' table. There are two subtypes, 'androids' and 'martians'. Martian have only one thing in common: they give...
33
by: Lee C. | last post by:
I'm finding this to be extremely difficult to set up. I understand that Access won't manage the primary key and the cascade updates for a table. Fine. I tried changing the PK type to number and...
35
by: Traci | last post by:
If I have a table with an autonumber primary key and 100 records and I delete the last 50 records, the next record added would have a primary key of 101. Is there any way to have the primary key...
4
by: yf | last post by:
A KB article "http://support.microsoft.com/default.aspx?scid=kb;en-us;209599" tells that the maximum number of records that a table may hold if the PRIMARY key data type is set to AUTONUMBER is...
26
by: jimfortune | last post by:
Sometimes I use Autonumber fields for ID fields. Furthermore, sometimes I use those same fields in orderdetail type tables. So it's important in that case that once an autonumber key value is...
8
by: petebeatty | last post by:
I have created a SQL string the properly inserts a record in the table. However, the insert does not occur at the end of the table. Instead it inserts a record after the last record that I viewed....
11
by: Alan Mailer | last post by:
A project I'm working on is going to use VB6 as a front end. The back end is going to be pre-existing MS Access 2002 database tables which already have records in them *but do not have any...
1
by: gtwannabe | last post by:
I'm having a problem with a form that uses AutoNumber as the primary key. I have an Abort button to delete the current record and close the form. If AutoNumber is assigned, the code executes a...
9
by: Tom_F | last post by:
To comp.databases.ms-access -- I just discovered, to my more than mild dismay, that some tables in my Microsoft Access 2003 database have duplicate numbers in the "AutoNumber" field. (Field...
6
by: ashes | last post by:
Hi, I am creating an ecommerce website using Microsoft Visual Studio, VB.Net and MS Access 2003. I am new to VB.Net When someone wants to register on the website, they fill out a form and the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.