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

Home Posts Topics Members FAQ

Automatically create new record to related table on update

Hi, first time posting to this group, but I have followed advice and
examples for several months, so thank you.

I work for a small telecommunications company. I have a simple Orders
database that has an Orders table to track a sales order, using
OrdersID as the PK. I have a related one-to-many table called
OrderDetails, with the OrdersID as a FK, which shows all the products
sold with that order. Then I have an Update table, in a one-to-many
relationship with the OrderDetails table (OrderDetailID is FK in Update
table). This table is used to track the status of each product as it
flows through the order process. Each product can have different status
dates and types.

On a monthly basis, I import my Order information into the Orders and
OrderDetails table from a .csv file. (Sales information comes from a
Siebel export). The PK for the OrdersID is a unique Order ID that is
created from the Siebel database. No issues there. I also am able to
import the OrderDetails information without any issue.

What I would like to do is have Access automatically create a new
record with the UpdateRecordID PK field updated in the Update table for
each OrderDetailID when I paste them into the OrderDetail table.

The reason I need this is I run a query that shows me the current
status off all OrderDetails. I can only see the Update records that
contain an updated PK field value.

Nov 13 '05 #1
1 6262
md****@sbc.com wrote:
Hi, first time posting to this group, but I have followed advice and
examples for several months, so thank you.

I work for a small telecommunications company. I have a simple Orders
database that has an Orders table to track a sales order, using
OrdersID as the PK. I have a related one-to-many table called
OrderDetails, with the OrdersID as a FK, which shows all the products
sold with that order. Then I have an Update table, in a one-to-many
relationship with the OrderDetails table (OrderDetailID is FK in Update
table). This table is used to track the status of each product as it
flows through the order process. Each product can have different status
dates and types.

On a monthly basis, I import my Order information into the Orders and
OrderDetails table from a .csv file. (Sales information comes from a
Siebel export). The PK for the OrdersID is a unique Order ID that is
created from the Siebel database. No issues there. I also am able to
import the OrderDetails information without any issue.

What I would like to do is have Access automatically create a new
record with the UpdateRecordID PK field updated in the Update table for
each OrderDetailID when I paste them into the OrderDetail table.

The reason I need this is I run a query that shows me the current
status off all OrderDetails. I can only see the Update records that
contain an updated PK field value.


Hope I followed you correctly here... So you want Update to contain all
the OrderDetailID's? Would it suffice to work this into your existing
query (or create a new query), along the lines of

SELECT DISTINCT OrderDetailID from OrderDetails;

?
--
Smartin
Nov 13 '05 #2

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

Similar topics

11
by: Matt | last post by:
Hi everyone, still pretty new to MySQL. I was wondering if there is a way to automatically filter records based on a mysql userlogin name?? I have serveral databases that I want to combine in...
3
by: BlackFireNova | last post by:
This concerns an Access 2002 (XP) database. There are two fields, "Notes" (Memo Field) and "Notes Update" on a form (among others) which I am concerned with here. Problem: I need to be able...
3
by: BlackFireNova | last post by:
I have an existing database, and I need to add another table to it. The database tracks equipment, however I have a need to track ancillary items which are purchased or added to some of the...
5
by: Sami | last post by:
Please bear with me, and if you answer this question, please do it step by step. I am new at Access, not at all sophisticated. I am using Office XP. This will need to be read in Access for...
3
by: PAUL | last post by:
Hello, I have 2 datasets I am trying to update. The parent table seems to update fine but when I go update the chiled table I get an error message that says I need a related record in the parent...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
3
by: igendreau | last post by:
I'm trying to clean up a database of mine, and I need to convert some old DAO code over to ADO. When I was using DAO, I had no problem running this script and deleting the record using rs.Delete. ...
13
by: Mary | last post by:
I'll pulling my hair out on this one and would be so appreciative of any help. I am creating a data entry form to enter results of a student survey. There are 40 questions on the survey. The...
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
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
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,...
1
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: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.