Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Artificially Inflating AutoNumber
David Hookings 
    
6 years ago
Hi Richard, apologies in advance for what could be a long question. I have used Access in the past and am reasonably comfortable with vba, but my database at work is handled by Foxpro for windows. (Has been for many, many years.) As it becomes more and more difficult to operate this, especially with multiusers, I have decided to convert it to Access 2013. My initial problem is with my customer table primary key which I maintain by code. I have a one row table, open permanently, with one of the fields, fldAccountnumber. To enter a new customer I increment the number in this field then put the result in the primary key field of Customer. Perhaps I made a mistake originally by using this field, showing it on invoices etc. I have quite a few child tables referencing this field. In transferring the database to Access 2013 it would be nice if could use this number (it is unique) and start my autonumber from the last number used in Foxpro. There are roughly 16000 records in the existing table. Do you have any part of the course that handles this?

Regards

Dave Hookings
Richard Rost  @Reply  
          
6 years ago
Hi Dave. First, I want you to watch this video: AutoNumbers: Good or Bad. There are some links to additional "side videos" below that too that you might find useful.

Now, with that being said, you should really try to convert your database over to allowing Access to manage those AutoNumbers for you. I appreciate what you've done so far, but like you said, in a multi-user environment, maintaining that AutoNumber table you've got is going to get increasingly difficult.

If you want to keep your old number and start your Access AutoNumbers there, you can. It's basically the same technique as I show here: Restore Deleted AutoNumber. You just use an Append Query to insert a record with that number in your table. Compact the database. Your next AutoNumber should be X+1.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/16/2026 11:24:04 AM. PLT: 1s