PC Review


Reply
Thread Tools Rate Thread

Copy from one subform to another record

 
 
=?Utf-8?B?Q2F0?=
Guest
Posts: n/a
 
      20th Jan 2004
I hope someone can help. I have a main form (Contracts) with 2 subforms, data stores in tblContracts and tblContractDetails. App Contracts are entered first, with a Contract# (like App04111), App/Merch, StartDate, EndDate, CorrespContract#(empty here), NumOfWidgets (and others) in the main Contracts section, then enters a list of StoreID's and AppDate's in the AppSub form. On Contracts form, when user chooses App or Merch either the AppSub becomes visible or the MerchSub; they cannot store App and Merch on the same contract

Only sometimes is there a corresponding Merch contract. When there is, when user enters CorrespContract# (App04111) I want it to copy just these fields from the original AppContract, and the StoreID and AppDate list to the MerchSub

I cannot seem to get these fields correct, and would appreciate any help. Thanks!
 
Reply With Quote
 
 
 
 
Michel Walsh
Guest
Posts: n/a
 
      23rd Jan 2004
Hi,


There is generally no need to store repeated data (there are exceptions,
like for archives), and, in fact, it can become troubles, mainly if you have
to update one record, you can't, since you have to update all the other
records too into which you "copied" the data (like a cut-and-paste of some
lines of code, if you find an error in the original lines, you have to
remember every occurrence where you did cut-and-paste it, to repair the
error there too). Can't you change the table design to avoid that? A simple
inner join between tables can "retrieve" the "repeated" data at "run time",
as required, without having really stored the same data at many places. Much
less simple for maintenance... and to append new data, as you discovered.



Hoping it may help,
Vanderghast, Access MVP

"Cat" <(E-Mail Removed)> wrote in message
news:4BAF37D0-CD12-4AD1-A0FB-(E-Mail Removed)...
> I hope someone can help. I have a main form (Contracts) with 2 subforms,

data stores in tblContracts and tblContractDetails. App Contracts are
entered first, with a Contract# (like App04111), App/Merch, StartDate,
EndDate, CorrespContract#(empty here), NumOfWidgets (and others) in the main
Contracts section, then enters a list of StoreID's and AppDate's in the
AppSub form. On Contracts form, when user chooses App or Merch either the
AppSub becomes visible or the MerchSub; they cannot store App and Merch on
the same contract.
>
> Only sometimes is there a corresponding Merch contract. When there is,

when user enters CorrespContract# (App04111) I want it to copy just these
fields from the original AppContract, and the StoreID and AppDate list to
the MerchSub.
>
> I cannot seem to get these fields correct, and would appreciate any help.

Thanks!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Records from Subform of one Record to Another Record Cy Microsoft Access Forms 3 7th May 2008 09:27 PM
Requery One Subform Based on Current Record in Another Subform =?Utf-8?B?SmVu?= Microsoft Access Form Coding 2 29th Mar 2007 06:18 PM
Copy Data from one Subform to another Subform Nigel King Microsoft Access Forms 2 4th Oct 2006 06:08 AM
code to delete a record in one subform when a record in a related subform is deleted Helen Microsoft Access Form Coding 3 3rd Apr 2005 10:01 PM
copy data from one subform to another subform with recordset tag Microsoft Access VBA Modules 0 16th Sep 2003 05:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:54 AM.