dharkangel
MIS
Hi,
I have this piece of code in my VBA Module and when I run it, I keep getting an Unknown error on the DoCmd command. I can't see anything wrong with the syntax, so either, I've been looking at the code too long or there is something about the dAvg function I don't understand:
TokyoWeeklyClosedByCommit is an integer field with values.
strSQL = "UPDATE ClosedByCommit SET TokyoRunningAverage = " & _
"DAvg(""[TokyoWeeklyClosedByCommit]"",""TokyoInternalActions"",""[ID] <= 3"")" & _
"WHERE ID = 1;"
DoCmd.RunSQL strSQL
Thank you
I have this piece of code in my VBA Module and when I run it, I keep getting an Unknown error on the DoCmd command. I can't see anything wrong with the syntax, so either, I've been looking at the code too long or there is something about the dAvg function I don't understand:
TokyoWeeklyClosedByCommit is an integer field with values.
strSQL = "UPDATE ClosedByCommit SET TokyoRunningAverage = " & _
"DAvg(""[TokyoWeeklyClosedByCommit]"",""TokyoInternalActions"",""[ID] <= 3"")" & _
"WHERE ID = 1;"
DoCmd.RunSQL strSQL
Thank you