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

Migrating Data from one version to another version

KK
I have an application (Developed in MS access with two MDB's one for FE
and another for BE)
distributed to user group. We have new requirements that needs to
modify the tables structures including adding and deleting some of the
table feilds.

What is the best way to migrating the data from previous DB MDB to the
new DB MDB..
If we use import utility we have to do that that for each and every
table which takes a lot of time to complete.

Is there a easy way to do this by developing any functions in VBA..

Any tips or available to code to complete the task...

Dec 8 '06 #1
11 1687
I'm sorry, but I don't know what you are talking about in regard to "do that
for each and every table". On the database window, File | Get External Data
will allow you to check the objects you want and import them all at once.
It's possible to automate importing tables, but no easier than File | Get
External Data.

Larry Linson
Microsoft Access MVP

"KK" <kr******@gmail.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
>I have an application (Developed in MS access with two MDB's one for FE
and another for BE)
distributed to user group. We have new requirements that needs to
modify the tables structures including adding and deleting some of the
table feilds.

What is the best way to migrating the data from previous DB MDB to the
new DB MDB..
If we use import utility we have to do that that for each and every
table which takes a lot of time to complete.

Is there a easy way to do this by developing any functions in VBA..

Any tips or available to code to complete the task...

Dec 9 '06 #2
KK
Thanks for the response.
The structure of most of the tables got changed(As part of
normalization) either by adding or deleting feilds to most of the
tables.This is the reason I cannot dump all the data directly into the
new DB

Larry Linson wrote:
I'm sorry, but I don't know what you are talking about in regard to "do that
for each and every table". On the database window, File | Get External Data
will allow you to check the objects you want and import them all at once.
It's possible to automate importing tables, but no easier than File | Get
External Data.

Larry Linson
Microsoft Access MVP
Dec 9 '06 #3
KK
To be more precise, as part of normalization new feilds are added to
some tables, some feields are deleted in some tables and few feilds are
moved to other tables.

On a whole there are changes to around 15 out of 60 tables.

KK wrote:
Thanks for the response.
The structure of most of the tables got changed(As part of
normalization) either by adding or deleting feilds to most of the
tables.This is the reason I cannot dump all the data directly into the
new DB

Larry Linson wrote:
I'm sorry, but I don't know what you are talking about in regard to "do that
for each and every table". On the database window, File | Get External Data
will allow you to check the objects you want and import them all at once.
It's possible to automate importing tables, but no easier than File | Get
External Data.

Larry Linson
Microsoft Access MVP
Dec 9 '06 #4

KK wrote:
To be more precise, as part of normalization new feilds are added to
some tables, some feields are deleted in some tables and few feilds are
moved to other tables.

On a whole there are changes to around 15 out of 60 tables.
I would probably create new front and back ends. Import the stuff you
can use from your old DB, then modify the front and back ends and then
redistribute. Otherwise, this is going to be a royal PITA. You can
use Tony Toews' AutoFE Updater.

Dec 9 '06 #5
KK
The plan is to create new FE and BE..
The question is,how Am I going to dump the existing data to the new DB
The customer wants to retain the existing production data in the new
system.

pi********@hotmail.com wrote:
I would probably create new front and back ends. Import the stuff you
can use from your old DB, then modify the front and back ends and then
redistribute. Otherwise, this is going to be a royal PITA. You can
use Tony Toews' AutoFE Updater.
Dec 9 '06 #6

KK wrote:
The plan is to create new FE and BE..
The question is,how Am I going to dump the existing data to the new DB
The customer wants to retain the existing production data in the new
system.

pi********@hotmail.com wrote:
I would probably create new front and back ends. Import the stuff you
can use from your old DB, then modify the front and back ends and then
redistribute. Otherwise, this is going to be a royal PITA. You can
use Tony Toews' AutoFE Updater.
Depends on how complex your modifications are. You could set up your
tables without constraints (referential integrity etc) and then use
queries to update/modify your tables as you normalize them (or whatever
you're doing), and when you are done, you can link to the new DB and
run append queries. Once your data is all in and normalized, you can
reset the not null and referential integrity constraints. Basically,
you can do it all with queries. But I would take a *very* small subset
of the data (like 3-5 records per table) and then test to make sure you
can get the answers out that you need. Then just delete your test data
and run a series of append queries to populate your DB with real data.

Dec 9 '06 #7
KK
As I need to run these series of queries few times (In different
environments and later on to the production environment) do I need to
create any functions or GUI to execute the scripts.. I am basically not
a hardcore VBA developer..

Is there any code available to pass the series of queries as parameters
pi********@hotmail.com wrote:
>
Depends on how complex your modifications are. You could set up your
tables without constraints (referential integrity etc) and then use
queries to update/modify your tables as you normalize them (or whatever
you're doing), and when you are done, you can link to the new DB and
run append queries. Once your data is all in and normalized, you can
reset the not null and referential integrity constraints. Basically,
you can do it all with queries. But I would take a *very* small subset
of the data (like 3-5 records per table) and then test to make sure you
can get the answers out that you need. Then just delete your test data
and run a series of append queries to populate your DB with real data.
Dec 9 '06 #8
KK
As I need to run these series of queries few times (In different
environments and later on to the production environment) do I need to
create any functions or GUI to execute the scripts.. I am basically not
a hardcore VBA developer..

Is there any code available to pass the series of queries as parameters
pi********@hotmail.com wrote:
>
Depends on how complex your modifications are. You could set up your
tables without constraints (referential integrity etc) and then use
queries to update/modify your tables as you normalize them (or whatever
you're doing), and when you are done, you can link to the new DB and
run append queries. Once your data is all in and normalized, you can
reset the not null and referential integrity constraints. Basically,
you can do it all with queries. But I would take a *very* small subset
of the data (like 3-5 records per table) and then test to make sure you
can get the answers out that you need. Then just delete your test data
and run a series of append queries to populate your DB with real data.
Dec 9 '06 #9
KK
As I need to run these series of queries few times (In different
environments and later on to the production environment) do I need to
create any functions or GUI to execute the scripts.. I am basically not

a hardcore VBA developer..

Is there any code available to pass the series of queries as parameters

Dec 9 '06 #10

KK wrote:
As I need to run these series of queries few times (In different
environments and later on to the production environment) do I need to
create any functions or GUI to execute the scripts.. I am basically not
a hardcore VBA developer..

Is there any code available to pass the series of queries as parameters
Why do you need to pass parameters?

*One* (and certainly not the only) way to do it:
1. create an unbound form with a button and a label.
2. in the button's click event, do something like
- set the label's text to "Processing <queryname>..."
- run the query (DoCmd.OpenQuery "queryname")
- do this for each query and use the DoEvents and Me.Repaint to
repaint the form (so you see the updated messages).

- SHow the done message. Then hide the label.

you might want to use DoCmd.Execute "SQL Statement..." and then you
won't get lots of annoying "are you sure?" garbage, but you do want
error messages to get returned so you know what's going on.... (I guess
you could create a function to run the query and return the error # to
the function result... If it's zero, then everything's fine.

Have a look around the NG for RunSQL, OpenQuery, and DoCmd.Execute {SQL
Statement]

That should give you a place to start. But I'd make backups before
doing lots of data manipulation. You may not get it right the first
few tries. so just leave yourself an escape route (yes, you could use a
transaction, but get the basics going first...)

Hope this helps a little.
Pieter

Dec 10 '06 #11
KK
Thanks a lot .
Now I have a better idea how to deal with this data migration.I have
tried by creating test MDB files and it give me some confidence to
start with actual application.

I will try to search NG's for error handling techniques that needs to
be implemented during executing these queries from the code. If you
know any such please let me know.
Once again thank you so much for your prompt response.
pi********@hotmail.com wrote:
Why do you need to pass parameters?

*One* (and certainly not the only) way to do it:
1. create an unbound form with a button and a label.
2. in the button's click event, do something like
- set the label's text to "Processing <queryname>..."
- run the query (DoCmd.OpenQuery "queryname")
- do this for each query and use the DoEvents and Me.Repaint to
repaint the form (so you see the updated messages).

- SHow the done message. Then hide the label.

you might want to use DoCmd.Execute "SQL Statement..." and then you
won't get lots of annoying "are you sure?" garbage, but you do want
error messages to get returned so you know what's going on.... (I guess
you could create a function to run the query and return the error # to
the function result... If it's zero, then everything's fine.

Have a look around the NG for RunSQL, OpenQuery, and DoCmd.Execute {SQL
Statement]

That should give you a place to start. But I'd make backups before
doing lots of data manipulation. You may not get it right the first
few tries. so just leave yourself an escape route (yes, you could use a
transaction, but get the basics going first...)

Hope this helps a little.
Pieter
Dec 10 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Baby Blue | last post by:
I have 2 codes below to grap data from another site. I use them to get the data from one News site. However, when I click on some link inside (such as :...
19
by: Caesar | last post by:
Hi, I'm wondering if anyone here can point me in the right direction. My host does not provide php, and so I need to pull this data from another server that does support such scripting. Help?...
2
by: luu duong | last post by:
I know this is probably easy but here is the details. I have an asp page that is not inside a frameset. I want to post data to another asp page that is inside a frameset. So firstpage.asp has...
5
by: Vanessa | last post by:
I have a question, is that any other way to retrieve data from another webpage besides using XML object? Because I am using XML object now but give me so much problems. If I used...
4
by: Andrea De Santi | last post by:
How can I redirect to another page with form data? In asp Classic I write: <form ... action="filename">...</form> and in then target page I write <%=request.form("fieldname")%> ..... but in...
2
by: james | last post by:
Not sure if this is the right group, but anyway. I've built a setup project in vs2005 to install my program. All works fine, until I issue an update. If anyone tries to install it, they get the...
4
by: Peter Afonin | last post by:
Hello, I have a form with several buttons, and I need to post this data to several different applications. In ASP.NET 1.1 it was quite easy - I just used HTML controls (text or hidden), then...
2
by: thread | last post by:
Hi All i'm building a database in access and i want to restrict permissions. from the access i can just limit the posiblity to unhide an hidden table and in this way i can preventing the users...
2
by: sarabonn | last post by:
hello everyone, I have created a setup using setup and deployment project using visual c# 2008. It's is a windows Form application. I made some changes to the setup in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.