Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / November 2004

Tip: Looking for answers? Try searching our database.

Starting Over

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lori - 29 Nov 2004 20:51 GMT
Hello, I hope someone can give me a little direction.  I built a database,
which has actually turned out to be very large.  I have learned along the way
that I made some errors.  For example, in one very large table I did not use
auto-number in the key field and I really should have.  Is there a way to
start over on a clean database form and copy over the table and change it to
auto-number and import the data? Or is there a way to fix this on the current
database?  Any suggestions would be great.
Signature

Thank, Lori

Allen Browne - 30 Nov 2004 02:10 GMT
You can use an Append query to import data into an AutoNumber table.

1. Firstly, if this is Access 2000 or later, ensure that the Name
AutoCorrect boxes are unchecked under:
       Tools | Options | General.

2. On the Tables tab of the Database window, select your table and press
Ctrl+C (to copy) and Ctrl+V (to paste). Access pops up a dialog where you
will choose "Structure Only", and supply a name for the table.

3. Open the table in design view. Replace the Number field with an
AutoNumber field. Save. Close.

4. Create a query into the old table. In query design view, choose Append on
Query menu. Tell Access to append to the new table, created at step 2. Drag
all fields from the original table into the grid. If the AutoNumber field
has the same name as the previous number field, it should map automatically;
otherwise you can specify the name of the matching field in the new table.
Run the query.

5. Verify that the new table has the correct data. Remove any relationships
the old table was involved in (Relationships on Tools menu), and then delete
it.

6. Compact the database:
       Tools | Database Utilities | Compact

7. Rename the new table with the same name as the old one if desired.

8. Recreate any relationships you deleted at step 5.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Hello, I hope someone can give me a little direction.  I built a database,
> which has actually turned out to be very large.  I have learned along the
[quoted text clipped - 7 lines]
> current
> database?  Any suggestions would be great.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.