473,385 Members | 1,356 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,385 software developers and data experts.

mdb to mdb

7
i have an mdb with lot of tables in it. But now since the old mdb is not so flexible the way user wanted, the requirement is creating a new mdb with different tables some of them matches the way the old table but some it is combination of fields from more than table in old mdb.


For example old.mdb table name: associate Fields : first name, last name. personid
table name: Network Fields : network id, person id

New mdb
table name associate: firstname, lastname, personid, networkid
How do i do it?
Dec 5 '07 #1
3 1208
How to you do what? A specific question on how to do something with Access would really make it a lot easier for us to help you.

Can you explain in more detail what you are having trouble doing?
Dec 5 '07 #2
Dököll
2,364 Expert 2GB
i have an mdb with lot of tables in it. But now since the old mdb is not so flexible the way user wanted, the requirement is creating a new mdb with different tables some of them matches the way the old table but some it is combination of fields from more than table in old mdb.


For example old.mdb table name: associate Fields : first name, last name. personid
table name: Network Fields : network id, person id

New mdb
table name associate: firstname, lastname, personid, networkid
How do i do it?
Hello bhu!

Have you yet attempted an update query?

Fetch here or Google search if you do not know, may find some fancy, fairly easy tutorials through Microsoft's sites.

Are you comfortable setting up a query?

An cheap an easy alternative could be to load the data right into your new database table (with both database open)...Copy and paste. You'd need to make sure table columns are set up the same way in both, proper formats and so on.

Let us know.

In a bit!

Dököll
Dec 5 '07 #3
sierra7
446 Expert 256MB
If you really want to do what you say (I am presuming this is just an example) then there are two approaches you can use;-
1. Add the new field to the Associates table and then update it with a query from the networks table, as Mr Dokoll is suggesting (sorry I dont have umlauts on my kb)

2. Alternatively, create a 'Make Table' query (in Old.mdb) , run it to create a NewAssociates table, then open New.mdb and import the new table from Old.mdb, rename it and check indexes. Sound more lengthy but leaves initial data intact.

However, whichever you decide you must first you must confirm (analyse) you 'physical' situation. One presumption is that you have a list of 'associates' some of whom have a NetworkID. You must then confirm that an associate may NOT HAVE more than one NetworkID, otherwise your data must stay as it is. (Why has the original database designer written it like this??) You may also need to confirm that for each NetworkID record there is a valid PersonaID value, otherwise the NetworkID is of no value and can be lost. etc.

You should also run 'Find Duplicate' checks on the network table to ensure that there are no repeats of Person ID or NetworkID, because it sounds like a 'JOIN' table to me.

Taking the situation at face value and that you have a list of associates, some of whom have networkID's, start by creating a Select query joining the two tables on [PersonID]. You will need to edit the join type so that you are selecting ALL records from the Associates table. When you run this query and check you are seeing the correct data you can go back into design mode and change the query type to MakeTable. You will then be prompted for a new table name.When you run the query next time the data will be copied into the new table.

However, the more I think about your problem the more concerned I am that you may be about to 'de-normalize' the data which is bad for performance, bad for flexibility (i.e. restricts an associate to only one NetworkID or one telephone number etc, when it may be valid to have more than one) and your forms may stop working because they are based on queries

Best of luck
Dec 6 '07 #4

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.