MSAccessRookie
AWF VIP
- Local time
- Today, 17:59
- Joined
- May 2, 2008
- Messages
- 3,423
I understand Bob. I'm sticking around though, if you don't mind. And to show that I really do actually care, here is something for the OP:
You need this:
Table1
NameID = PK autonumber
Name = name of person
Table2
TrainingID = PK autonumber
TrainingName = forklift, crane, etc...(these types)
NameID = FK (ID of person in table 1)
Completion DATE = this is obvious
After you get this rearranged, you can build your query, and thus your report in a block style, just like u want. Query SQL will be something like this:that is an example of the code that will pop out if you just create those tables with the relationships that are specified above.Code:SELECT table1.nameID, table1.name, table2.trainingname, table2.completionDATE FROM table1 INNER JOIN table2 ON nameID = nameID
and BTW, the word "NAME" is reserved, so don't use it to "name" any field in a table.The reason is irrelvant, just don't.
I added the third table to avoid duplication of the Training Names in Table 2. I assumed that each person has the right and opportunity to take each training, and therefore there would be significant duplication.