Coleman984
Registered User.
- Local time
- Yesterday, 23:58
- Joined
- Jul 28, 2011
- Messages
- 89
I have 3 queries that have a column titled TotalPoints which uses the below formula to get the information:
Then I want to have a 4th query that uses the column created by the below formula to summarize the 3 queries that contain the below formula.
The problem I have is getting the information to show correctly, what would be the proper way to create relationships between the tables? The common field between all tables / queries is EmployeeID. The tables used to create the queries are:
Weekof17July2011
Weekof24July2011
Weekof31July2011
tblEmployeeNames
The queries are named as follows:
Weekof17July2011_Query
Weekof24July2011_Query
Weekof31July2011_Query
TotalPoints (this is the query not working)
Then I want to have a 4th query that uses the column created by the below formula to summarize the 3 queries that contain the below formula.
The problem I have is getting the information to show correctly, what would be the proper way to create relationships between the tables? The common field between all tables / queries is EmployeeID. The tables used to create the queries are:
Weekof17July2011
Weekof24July2011
Weekof31July2011
tblEmployeeNames
The queries are named as follows:
Weekof17July2011_Query
Weekof24July2011_Query
Weekof31July2011_Query
TotalPoints (this is the query not working)
Code:
TotalPoints: IIf([Sunday]="NCNS" Or [Sunday]="ABS",1,IIf([Sunday]="LE" Or [Sunday]="late",0.5,0))+IIf([Monday]="NCNS" Or [Monday]="ABS",1,IIf([Monday]="LE" Or [Monday]="late",0.5,0))+IIf([Tuesday]="NCNS" Or [Tuesday]="ABS",1,IIf([Tuesday]="LE" Or [Tuesday]="late",0.5,0))+IIf([Wednesday]="NCNS" Or [Wednesday]="ABS",1,IIf([Wednesday]="LE" Or [Wednesday]="late",0.5,0))+IIf([Thursday]="NCNS" Or [Thursday]="ABS",1,IIf([Thursday]="LE" Or [Thursday]="late",0.5,0))+IIf([Friday]="NCNS" Or [Friday]="ABS",1,IIf([Friday]="LE" Or [Friday]="late",0.5,0))+IIf([Saturday]="NCNS" Or [Saturday]="ABS",1,IIf([Saturday]="LE" Or [Saturday]="late",0.5,0))