Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

many to many 2

Status
Not open for further replies.

67peshawar294

Technical User
Mar 8, 2001
388
US
I am really confused! I started a project for training. Each employee views 12 PPT shows.
I have three tables:
tblemployee tblpresentation tblreview
employeeID presentationID reviewid
employee presentation employeeid
Position presentationid
Date review (yes/no)

As long as I manually enter the numbers in employeeID and presentationID everything works great!
Code:
 [u]tblreview[/u]
ReviewID	EmployeeID	PresentationID  Review
1	               1	       1	      FALSE
2	               1	       2	      FALSE
3	               1	       3	      FALSE
4	               2	       1	      FALSE
5	               2	       2	      FALSE
6	               2	       3	      FALSE
7	               3	       1	      FALSE
8	               3	       2	      FALSE
9	               3	       3	      FALSE
each employee has to view 3 presentations (eventually 12)
how do I populate the tblreview automatically???
THERE ARE 22 EMPLOYEES!!!!! I would like to enter a new employee and have the number of ppt presentation automatically be entered in the tblreview.
thanks jim
 
Why not just add tblreview records as the employees review the presentations?

Do you want to add records again every time you add a new presentation?

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
if you need to also list the presentations that haven't been reviewed, then you change the query to a LEFT/RIGHT join instead of an INNER join.

Leslie

In times of universal deceit, telling the truth will be a revolutionary act. - George Orwell
 
I got it! Just a lapse in brain power. The hampster that runs around charging my cortex must have taken a break.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top