473,466 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MS Access SQL 'Deep-copy' Query Help...

MS Access Database

I'm working on a 'Reorder' function for my friend's database.
Essentially, it is a 'deep-copy' of several related tables. Here is
the table setup...

tblSalesOrder
SalesOrderID (PK) Field1, Field2, etc

tblWorkOrder
WorkOrderID (PK), SalesOrderID (FK), Field1, Field2, etc

tblOperation
OperationID (PK), WorkOrderID (FK), Field1, Field2, etc

I am able to successfully create a 'reorder' of the SalesOrder and
WorkOrder but I am having trouble with the Operation per WorkOrder.

Sample Data:

tblWorkOrder
WorkOrderID SalesOrderID Field1
25 6 ExWO1
26 6 ExWO2
27 13 ExWO1
28 13 ExWO2

tblOperation
OperationID WorkOrderID Field1
3 25 ExOp1
4 25 ExOp2
5 26 ExOp3

Note, this sample is taken AFTER the reorder at the SalesOrder and
WorkOrder level.
Desired data after the reorder at the Operation level would be:

tblOperation
OperationID WorkOrderID Field1
3 25 ExOp1
4 25 ExOp2
5 26 ExOp3
~
6 27 ExOp1
7 27 ExOp2
8 28 ExOp3

Where 6,7,8 are the 'new' records...

I tried my hand at a few SQL queries myself, but I keep hitting a dead
end. I would supply them here, but I'm afraid they probably wouldn't
be of much help.

Please let me know if there is anything else I could provide to help
with finding a solution. Thank you!

Jun 27 '08 #1
1 1827
James,

That is quite a clever solution, however, I would much rather not have
to change the table definitions around, if possible. Instead, perhaps
your solution could be implemented with a temporary hash-table? I will
look into this.

Otherwise, are there any other, VBA/SQL-based solutions that anyone
could think of?

Thanks for your time!
Jun 27 '08 #2

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

Similar topics

20
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
115
by: TheAd | last post by:
At this moment I use MsAccess and i can build about every databound application i want. Who knows about a serious open source alternative? Because Windows will be a client platform for some time, i...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
6
by: latosca68 | last post by:
I need to demostrate, in a forensic job, that I can change (insert, update, delete) records in a table of an access database without trace. How can I do this ? I plan to make the queries or export...
33
by: Uwe Range | last post by:
Hi to all! A customer of mine told me some days ago that her IT-people told her ACCESS would not be such a good idea for continuing with our project, because Access will not be continued in the...
4
by: lars.uffmann | last post by:
Hey everyone! I am (still) working on a project that I took over from former students, so don't blame me for the criminal approach on coding *g* The problem I have is fairly easy and while I...
5
by: TD | last post by:
Hey All- I don't think this is possible, but we'd love it if it were. We would like to have a pane of our own design docked along the left side of our Access application's main window. This...
2
by: RickH | last post by:
Using the ms XMLDOM... What techniques do you guys use to create deep elements in code for appending to the main document as the user "adds" complex objects. Currently I keep 3 files to do it...
10
by: NEWSGROUPS | last post by:
I work for an organization that is migrating from Access 2000 to Access 2003. About 5 or 6 years ago we migrated from Access 97 to Access 2000 with no problem. Will I have trouble converting these...
10
by: WannaKatana | last post by:
I am just wondering why, with nothing else running and executing an update query against a very large table, does Access seem to be causing less than 10% processor usage. Then it says "There is not...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.