dbTalk Databases Forums  

Transfer related records along with main record to different tables

comp.database.ms-access comp.database.ms-access


Discuss Transfer related records along with main record to different tables in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Maura
 
Posts: n/a

Default Transfer related records along with main record to different tables - 12-10-2003 , 10:33 AM






When a prospect becomes a client, I need to transfer the records into
the client tables. I use a checkbox to indicate when a proposal has
been accepted. Then the prospect becomes a client, and then all
prospect records need to be moved. Each Prospect record in
tblProspects has related records in tblProspectContacts and
tblProspectNotes which need to move into tblClientContacts and
tblClientNotes respectively. Fields in Prospect tables match fields in
Client tables. Are there suggestions to how I can do this without
manually copying and pasting?

Thanks.
Maura

Reply With Quote
  #2  
Old   
Scott McDaniel
 
Posts: n/a

Default Re: Transfer related records along with main record to different tables - 12-10-2003 , 07:25 PM






Instead of transferring data between tables with matching fields, why not
build a Contact table (you give it the appropriate name) which house ALL of
your contacts, whether they are Prospective contacts or bonafide clients,
then differentiate them by a Type field ... for example, a Contact record
could, at first, be a "Prospect", but after you have secured them as a
client you would simply change the Type field to "Active Client" and not
have to worry about moving records from one table to the next. Then, if they
become inactive, you could set the Type field to "Inactive" or "Loser" ...
or whatever.

Of course, there may be some compelling reason to keep the different types
of People separate. You can easily move records by using an Append Query
(build an appropriate query, then from the Query window, click Query -
Append and follow the prompts).

--
Scott McDaniel
CS Computer Software
Visual Basic - Access - Sql Server - ASP
"Maura" <maura (AT) gonomadic (DOT) net> wrote

Quote:
When a prospect becomes a client, I need to transfer the records into
the client tables. I use a checkbox to indicate when a proposal has
been accepted. Then the prospect becomes a client, and then all
prospect records need to be moved. Each Prospect record in
tblProspects has related records in tblProspectContacts and
tblProspectNotes which need to move into tblClientContacts and
tblClientNotes respectively. Fields in Prospect tables match fields in
Client tables. Are there suggestions to how I can do this without
manually copying and pasting?

Thanks.
Maura



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.