another monor problem
the following worked
mo1 = DAvg("[Field]", "Query name", "[criteria] = " & variable)
but when i try to add another condition with "AND" it causes an error
ex:
mo1 = DAvg("[Field]", "Query name", "[criteria] = " & variable and "[criteria field 2] = " &variable2 )
where...