PC Review


Reply
Thread Tools Rate Thread

Add record from each entry in table for each user in another table

 
 
Steve Wood
Guest
Posts: n/a
 
      6th Sep 2008
I need to find a way to add details of a mandatory training course from one
table thats updated by the db manager to a table with each users training
history. Using a table that lists all users.

So thats three tables as follows

tblMandatoryTraining (This is the list of Training courses the manager can
update)
tblTrainingHistory (This is a list of all training all users needs to
accomplish)
tblUsers (This is just a list of users)

There needs to be an entry for each course for each user as they then update
the record to say they have completed it..

Any help would be appreciated as I just cant get my head arround this one.
 
Reply With Quote
 
 
 
 
pietlinden@hotmail.com
Guest
Posts: n/a
 
      6th Sep 2008
On Sep 6, 4:12*pm, Steve Wood <SteveW...@discussions.microsoft.com>
wrote:
> I need to find a way to add details of a mandatory training course from one
> table thats updated by the db manager to a table with each users training
> history. Using a table that lists all users.
>
> So thats three tables as follows
>
> tblMandatoryTraining (This is the list of Training courses the manager can
> update)
> tblTrainingHistory (This is a list of all training all users needs to
> accomplish)
> tblUsers (This is just a list of users)
>
> There needs to be an entry for each course for each user as they then update
> the record to say they have completed it..


Nothing to it.
create a query based on tblMandatoryTraining to select the records you
want to create records for.
Add tblUsers and filter for the users you want. Do not join the
tables (you can't really - the joins won't make sense, since the
tables are not directly related.) If you run the table, you'll get a
cross join - all possible combinations of the two filtered results.
So say tblMandatoryTraining has 3 records and tblUsers has 2 records,
your result will have 6.

Then take that query and turn it into an append query (to
tblTrainingHistory), and you're done.
 
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
Last record/entry from a table Hurrikane4 Microsoft Access Queries 2 2nd Jun 2010 03:58 PM
Adding a record to another table from data entry bpuppygrrl Microsoft Access Getting Started 3 28th Apr 2008 02:33 PM
Changing main table entry based on last corresponding record in su =?Utf-8?B?RUQwMDc=?= Microsoft Access Forms 2 5th Apr 2007 06:39 PM
Add a Record to Table via New Entry in a Text theshadowknz@comcast.net Microsoft Access Form Coding 1 14th Jul 2004 11:47 PM
table entry based on record Joan Microsoft Access Form Coding 1 10th Jan 2004 01:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:19 PM.