">
I created a totaling query on the table (Total: Sum) and created another macro as
SetLocVar
Name: Test
Expression = {Query1]!{SumOfValue1]
Running the macro produces the same 2482 error message.
I should note that the database is in a trusted location, but when I examine CurrentProject.IsTrusted (with macro named "AutoExec"), result is False.
Right. The basic premise is that you can't basically "look into" the values inside a table from within a saved macro, you'll have to use a function to do that (or use a data macro). That is why I recommended using DSum(). Have you tried it yet? Are you not able to use it?