Hello,
I need to create a form that shows all the actions that have been chosen for each week. I am hoping to have all the actions for the first week in the first column and a column for each week's number up to 12. The only thing in the week field will be an "X" if they have chosen that action, which week one should have all X's. Otherwise, it should be blank on other weeks if the chose to pick another action. When actions are added each week, the additional action should show up after the last action in the first column. Here is a quick example.
The client is allowed to add one action per week and can swap an action; that is why there are two actions for weeks 3 and 4. Notice on week 6 there is no action added, but they chose to bring back a previous action.
I am pulling the data from two different tables. One table has TimedActions and the other are just to be accounted for. There are about 12 actions that can have a timed value and an accountable value. That is where I'm getting duplicates. I created a query that pulls all the information for week 1.
This gets all the information I need, but I need to find a way to filter out the duplicate actions and get the added actions for each week on the same form.
If anyone has some ideas on how to approach this, I would greatly appreciate it.
I need to create a form that shows all the actions that have been chosen for each week. I am hoping to have all the actions for the first week in the first column and a column for each week's number up to 12. The only thing in the week field will be an "X" if they have chosen that action, which week one should have all X's. Otherwise, it should be blank on other weeks if the chose to pick another action. When actions are added each week, the additional action should show up after the last action in the first column. Here is a quick example.
Action Chosen Wk1 Wk2 Wk3 Wk4 Wk5 Wk6 Wk7
Wk1Action1 X X X X X X X
Wk1Action2 X X X
Wk1Action3 X X X X X X X
Wk1Action4 X X X X
Wk2Action5 X X X X X X
Wk3Action6 X X X X X
Wk3Action7 X X X X X
Wk4Action8 X X X X
Wk4Action9 X X X X
Wk5Action10 X X X
Wk7Action11 X
Wk1Action1 X X X X X X X
Wk1Action2 X X X
Wk1Action3 X X X X X X X
Wk1Action4 X X X X
Wk2Action5 X X X X X X
Wk3Action6 X X X X X
Wk3Action7 X X X X X
Wk4Action8 X X X X
Wk4Action9 X X X X
Wk5Action10 X X X
Wk7Action11 X
The client is allowed to add one action per week and can swap an action; that is why there are two actions for weeks 3 and 4. Notice on week 6 there is no action added, but they chose to bring back a previous action.
I am pulling the data from two different tables. One table has TimedActions and the other are just to be accounted for. There are about 12 actions that can have a timed value and an accountable value. That is where I'm getting duplicates. I created a query that pulls all the information for week 1.
SELECT UserID, WeekNumber, StandardAction AS [Standard Action], Index
FROM Weekly_Challenges
WHERE Weekly_Challenges.UserID=TempVars!TmpUserID And Weekly_Challenges.WeekNumber=TempVars!TmpWeekNumber
ORDER BY Weekly_Challenges.Index
UNION SELECT UserID, WeekNumber,StartTimeAction, Index
FROM Weekly_StartTime_Challenges
WHERE Weekly_StartTime_Challenges.UserID=TempVars!TmpUserID And Weekly_StartTime_Challenges.WeekNumber=TempVars!TmpWeekNumber
ORDER BY Weekly_Challenges.Index;
FROM Weekly_Challenges
WHERE Weekly_Challenges.UserID=TempVars!TmpUserID And Weekly_Challenges.WeekNumber=TempVars!TmpWeekNumber
ORDER BY Weekly_Challenges.Index
UNION SELECT UserID, WeekNumber,StartTimeAction, Index
FROM Weekly_StartTime_Challenges
WHERE Weekly_StartTime_Challenges.UserID=TempVars!TmpUserID And Weekly_StartTime_Challenges.WeekNumber=TempVars!TmpWeekNumber
ORDER BY Weekly_Challenges.Index;
This gets all the information I need, but I need to find a way to filter out the duplicate actions and get the added actions for each week on the same form.
If anyone has some ideas on how to approach this, I would greatly appreciate it.