P
pokdbz
I have a seperate query made that calculates a total score.
SELECT MOCA.STUDYID,
[Moca_S1]+[Moca_S2]+[Moca_S3]+[Moca_S4]+[Moca_S5]+[Moca_S6]+[Moca_S7] AS
Score, MOCA.Moca_EDU, IIf([Moca_EDU]=1,[Score]+1,[Score]) AS NewScore,
IIf([NewScore]>30,30,[NewScore]) AS FinalScore
FROM MOCA;
I need to update a field in the table called CalcScore using this query for
each STUDYID.
I tried making a update query and put in
[TotalScoreUpdateQuery].[FinalScore] for the Update to but that didn't work.
SELECT MOCA.STUDYID,
[Moca_S1]+[Moca_S2]+[Moca_S3]+[Moca_S4]+[Moca_S5]+[Moca_S6]+[Moca_S7] AS
Score, MOCA.Moca_EDU, IIf([Moca_EDU]=1,[Score]+1,[Score]) AS NewScore,
IIf([NewScore]>30,30,[NewScore]) AS FinalScore
FROM MOCA;
I need to update a field in the table called CalcScore using this query for
each STUDYID.
I tried making a update query and put in
[TotalScoreUpdateQuery].[FinalScore] for the Update to but that didn't work.