Is there a way to AutoNumber + 700,000? Please let me know how I would be able to do that if it is possible.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
700,000 + Autonumber (Access 97)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » 700,000 + Autonumber (Access 97)
- This topic has 18 replies, 8 voices, and was last updated 22 years, 6 months ago.
Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerOctober 22, 2002 at 12:41 pm #625762What do you want to do?
Do you want to add 700,000 to an AutoNumber field in a query? In that case, use an expression like [Fieldname]+700000 where Fieldname must be replaced by the actual name of your field.
Or do you want to add 700,000 to the value of an AutoNumber field in the table itself? You can’t do that with an AutoNumber field.
Or do you want to start your AutoNumbers at 700,000? It’s possible, but if you want this, perhaps an AutoNumber is not the right kind of field.
-
WScharlotte
AskWoody Lounger -
WSsantosm
AskWoody LoungerOctober 23, 2002 at 3:05 am #625944OK guys, I have one for you then. Say I have an autonumber field. I was playing around with some code, ran it and the thing ran wild adding records. There was a problem with my do, loop statement. Anyhow, I have fixed that but now I want the numbers to start back at around 300 where they originally were. How do I make it say 300 instead of 461000……..
Thanks,
Mark -
WSJerry Dennison
AskWoody Lounger -
WBell
AskWoody_MVP -
WSHansV
AskWoody Lounger -
WSsantosm
AskWoody Lounger -
WSJerry Dennison
AskWoody LoungerOctober 23, 2002 at 11:39 am #626031This propbably means that there is some record that has a very high number.
Anyway, Charlotte is right. Autonumber is not designed for human consumption. It is strictly for Access’s use only to uniquely identify (address) a record. Don’t try to use them for anything else, you’ll be very dissapointed. What difference does it make what the autonumber is?
-
WSDouglas Martin
AskWoody LoungerOctober 23, 2002 at 6:49 pm #626154I feel like nitpicking
! I agree that if you care what values the autonumbers are then you are misusing the feature; however they can be useful for human consumption as long as it’s made painfully clear that they’re simply unique identifiers, no more, no less. Displaying and allowing the user to refer to an autonumber can be a convenient way to let a user quickly go to a particular record (e.g. to let him/her quickly copy corrections from a paper copy of a record to the database record).
Kind of like null numeric values (which some people don’t seem to approve of
) – they can be very useful but you need to be very careful with them.
-
WScharlotte
AskWoody Lounger -
WSDouglas Martin
AskWoody LoungerOctober 25, 2002 at 1:48 pm #626723I guess my point is there may be no single thing (other than the autonumber) that uniquely describes the data you want, so it’s a choice between specifying enough details to get to the record you want or specifying a single “magic number” that you know because it’s already on the printed output you want to correct. If you have a lot of corrections or updates to do, “magic numbers” speed things up.
-
WSgrugeon
AskWoody LoungerOctober 24, 2002 at 2:58 am #626291Delete the realtionships with the existing table
copy the table under a new name, tblTemp.
Delete all the records in tblTemp.
Compact the database.
Do an append query selecting all the fields except the ID field from the original table and appending to the temp table.
Delete the original table.
Rename tblTemp to the name the original table had.
Reconstruct the relationships with the new table.Don’t do this until Wendell or Charlotte have confirmed that it will not destroy other things.
-
WScharlotte
AskWoody Lounger -
WSgrugeon
AskWoody Lounger -
WScharlotte
AskWoody LoungerOctober 24, 2002 at 3:28 am #626342OK, now I’ll pick on you again. If you don’t append the ID field from the original table, how were you planning to reestablish the relationships? You have to keep the keys that were used to relate the records in the first place or you won’t be able to relate them after you create a whole new set of keys in that one table.
-
WSgrugeon
AskWoody LoungerOctober 24, 2002 at 4:39 am #626345 -
WScharlotte
AskWoody LoungerOctober 24, 2002 at 5:25 am #626354Depending on how many records might be causing the problem, that could be a tall order!
The workaround would be to convert the autonumber field to a long in the original table. Then copy the structure only to a temp table and add a new autonumber to that table while the temp table is empty. Compact the database and then append the records from the original table into the temp table. Append the old autonumber field values (now Longs) to the long field in the temp table and let Access create new autonumbers. That gives you a method for linking back to the original foreign keys in the other tables. At that point, you have to decide how to update the FKs in the other tables, but the safest way it to add a new column to each and update it with the NEW FKs from the temp table. Then you can delete the original table, create new relationships on the new FK fields and the autonumber in the new table and then remove the old FK field from the other tables. Of course, it’s a lot of work, either way.
-
WScharlotte
AskWoody Lounger
-
-
-
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Privacy and the Real ID
by
Susan Bradley
7 hours, 42 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
7 hours, 58 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
9 hours, 47 minutes ago -
Upgrading from Win 10
by
WSjcgc50
3 hours, 5 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 hour, 51 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
22 hours, 25 minutes ago -
The story of Windows Longhorn
by
Cybertooth
10 hours, 9 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 day ago -
Are manuals extinct?
by
Susan Bradley
4 hours, 23 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
1 day, 9 hours ago -
Network Issue
by
Casey H
20 hours, 36 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
1 day, 21 hours ago -
May 2025 Office non-Security updates
by
PKCano
1 day, 21 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
1 day, 23 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
1 day ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
2 days, 2 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
2 days, 2 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
2 days, 9 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 day, 1 hour ago -
Asking Again here (New User and Fast change only backups)
by
thymej
2 days, 20 hours ago -
How much I spent on the Mac mini
by
Will Fastie
4 hours, 13 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
23 hours, 51 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
3 days, 2 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day, 21 hours ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
2 days, 22 hours ago -
Powershell version?
by
CWBillow
2 days, 23 hours ago -
SendTom Toys
by
CWBillow
1 day, 9 hours ago -
Add shortcut to taskbar?
by
CWBillow
3 days, 2 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
3 days, 19 hours ago -
How can I install Skype on Windows 7?
by
Help
3 days, 18 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.