Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 6th, 2007, 10:19 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default import data from mdb to another mdb

The Access area of the forum seems to be locked, so why not post this here...

My two questions are:
1..Is there a way to import data from a .mdb file to another .mdb file?
2..How does one update and Access application without loosing data?

Why:
If we have multiple instances of an Access app distributed and there is change(s) to forms, how would you re-distrubute the new version without loosing data which is held in the previous app?

If I import tables of the same name between the two; a new table gets created with an integer appended. So yes it does import the data, however the objective would be to imoprt 'aTableName' data into 'aTableName' destination.

TYIA



Wind is your friend
Matt
__________________
Wind is your friend
Matt
Reply With Quote
  #2 (permalink)  
Old March 7th, 2007, 11:02 PM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Matt,

If you are working on these on a local machine and simply have 2 instances of a database that you wish to use, it is best done when setting up the databases initially.

If you already have databases working and wish to have one update the other on the fly follow this:

Backup data from tables (into excel for example) in 1 copy of the database that you wish to have importing data from the 2nd database

Now rename those tables adding an integer to the name

In the master database (the one where you renamed the tables) go file>get external data>link tables

Locate the 2nd database, pick the table you want to import from and check it.

Now manually copy in all the backed up data from excel, any future changes to the tables you linked will be reflected in both databases


Hope that makes sense, it's 3am and as a result my grammar/spellings might be a little off.
Reply With Quote
  #3 (permalink)  
Old March 7th, 2007, 11:56 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Thank you for your time

The situration is, we've got several (probably around 80) installations of the Access application DB. But before we roll out this solution, we'd like to make sure that we can readily upgrade the software (e.g. new funtions, new fields) in the future, painlessly and without losing any of their data.

Manually entering data is not an option as it is open to errors, This is the first time I've encountered link tables.. what happens if we want to upgrade again...?

Does Access simply not have these capabilities?

TYIA

Wind is your friend
Matt
Reply With Quote
  #4 (permalink)  
Old March 9th, 2007, 07:01 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Matt,

Linked tables is good for simultaneous data updates, once a table is linked you can only update properties the master database (the one you select when choosing where to link to... not the one you create the link in). You CAN add fields and such to the master database table which will be reflected in the linked tables... i've never tried this on more than a 2 database connection so have a play around and hope it works for you

Mark

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer Data from one database (mdb) to another Mercede Access 1 August 6th, 2008 07:15 AM
.mdb to .exe anukagni Access 13 July 22nd, 2006 03:09 AM
grocertogo.mdb Webdealer Wrox Book Feedback 1 June 8th, 2006 08:04 AM
Query to extract data from 2 tables of .mdb file Subuana Beginning VB 6 6 March 16th, 2006 04:37 PM
Copy Data from Access.mdb into an Excel Spreadshee KennethMungwira ADO.NET 2 January 23rd, 2004 10:46 AM



All times are GMT -4. The time now is 02:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.