PC Review


Reply
Thread Tools Rate Thread

can a new record be added to two 1-1 relational tables at once

 
 
=?Utf-8?B?SmVubmlmZXI=?=
Guest
Posts: n/a
 
      17th May 2006
I have several tables linked one to one with my main contact table. Can a
new record be automatically added to those tables when a new record is added
to the main table? If so How???????
I though that I knew but nothing I try is working. They are all one to one
and referential integrety and cascade delete and update are all checked.
I didn't think adding them manually would be a problem but my end users are
all complaining about remembering to do it and having to know the ID from the
main contact. Thanks for any help
 
Reply With Quote
 
 
 
 
Rick B
Guest
Posts: n/a
 
      17th May 2006
I did this once. To do so, I included all the tables in my query and built
a form using that query as the record source. Then, I included all the
fields from my main table in my form. I also added the key field (in my
case, EmployNum) from each of the related tables. I made this field
invisible. In my before update code for my visible EmployNum field, I
included code to copy that value to the invisible controls. This created a
blank record in each of the related tables.

Generally, this is not a really good idea. If your tables are 1-to-1 then
they could probably all be in one table. I did it because I really wanted
to separate some employee data and have more control over who could access
part of the record.

In any case, that scenario should help you.

--
Rick B



"Jennifer" <(E-Mail Removed)> wrote in message
news:F09A86C5-ED54-4910-BDF5-(E-Mail Removed)...
>I have several tables linked one to one with my main contact table. Can a
> new record be automatically added to those tables when a new record is
> added
> to the main table? If so How???????
> I though that I knew but nothing I try is working. They are all one to
> one
> and referential integrety and cascade delete and update are all checked.
> I didn't think adding them manually would be a problem but my end users
> are
> all complaining about remembering to do it and having to know the ID from
> the
> main contact. Thanks for any help



 
Reply With Quote
 
=?Utf-8?B?U3V6eVE=?=
Guest
Posts: n/a
 
      17th May 2006
why not use a subform within a form. When they add to the main table via the
form, the subform is visible on the form and you can require them to add the
necessary records to the related table before they exit the form.

"Jennifer" wrote:

> I have several tables linked one to one with my main contact table. Can a
> new record be automatically added to those tables when a new record is added
> to the main table? If so How???????
> I though that I knew but nothing I try is working. They are all one to one
> and referential integrety and cascade delete and update are all checked.
> I didn't think adding them manually would be a problem but my end users are
> all complaining about remembering to do it and having to know the ID from the
> main contact. Thanks for any help

 
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
Filtering relational dataset tables by parent record dentyne Microsoft ADO .NET 0 22nd Feb 2007 07:12 PM
Filtering relational dataset tables by parent record dentyne Microsoft C# .NET 0 22nd Feb 2007 04:33 PM
Relational tables =?Utf-8?B?V0xNUGlsb3Q=?= Microsoft Access 1 30th Aug 2006 06:32 PM
Relational Tables plus some =?Utf-8?B?S2VsbHk=?= Microsoft Access Getting Started 2 12th Jul 2005 12:43 AM
Records in relational tables =?Utf-8?B?U2hhd24=?= Microsoft Access Database Table Design 5 18th Jun 2005 12:47 AM


Features
 

Advertising
 

Newsgroups
 


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