Right then, let me try again. Thanks for your help so far.
My sub report has the following tables:
EntryLog
--------
EntryID (1, 2, 89, 100)
StartTime (Decimal such as 8.5 for 8:30)
EndTime (ditto)
UserID (4, 5, 6, 7, 8)
NominalID (56, 67, 68, 69)
Nominals
--------
NominalID (56, 67, 68, 69, 80, 90)
NominalName (string)
Users
-----
UserID
DisplayName
EntryLog is Inner Joined on UserID and NominalID
I also have another Users table and a Nominals table (both aliased) so that I can display all the of the Nominals for all of the users.
My sub report shows:
Display Name (grouped by UserID)
NominalName (grouped by NominalID)
EntryLog entries
I am selecting the following:
{TT_EntryLog.UserID}={TT_Users.UserID} and
{TT_EntryLog.NominalID}={TT_Nominals_1.NominalID}
although this doesn't appear to return all Nominals. I am also changing the sign of some of the summary information depending on the NominalID.
I tried to do this using only left joins but couldn't get this to work. I am unsure if this is best practice.
My main report I have the following:
Users
-----
UserID
DisplayName
Nominals
--------
NominalID
NominalName
I wish to put the sub report in for each staff member (including those without any entries in the sub report) displaying all Nominals.
I then wish to display a summary of certain Nominal codes as shown in my previous post.
Both the sub report and the master report on local reports on my machine. I terms of providing sample data:
Sub report
Pete Jones
Day Rate 14.50
Day Rate 5.50
Day Rate 9.00
Day Rate 0.00
Holiday 0.00
Holiday 0.00
Holiday 0.00
Other 1.50
Other 0.50
Other 0.50
Other 0.00
Other 0.50
Overtime 3.50
Overtime 3.50
Overtime 0.00
Overtime 0.00
Sickness Unpaid 3.50
Sickness Unpaid 3.50
Sub report Summary (detail suppressed)
Pete Jones
Day Rate 14.50
Holiday 0.00
Other 1.50
Overtime 3.50
Sickness Unpaid 3.50
Sleep In 63.50
Sleep In Absence 0.00
Training Overtime 3.50
Is that any better?