Tina - Thanks for the info. To answer: Yes, every step
tested and works. The macro just doesn't run, not even
once, which leads me to believe it isn't reading the
expression as, "True." Not getting any stop/halt box. I
am calling the macro within a marco. The queries before
the called macro have set up my control table with a
value in a the field set to the number of times I want
the macro to run. Within the called macro I have a
routines to perform the function I want then to update
the control field by -1. Leaving the Repeat Expression
blank and using the Repeat Count Action Augments to
control the number of time it runs indicates the control
table updates correctly and all functions perform as I
wanted. I understand about the command button but that
would defeat the automation I am attempting to do. Also,
I cannot get the Repeat Count augment field to accept
anything other than a number. Thanks much for your time
and advice. I see "Steve" has some ideas also. Have nice
holiday. This is a real learning experience!
-----Original Message-----
have you run the macro on a "step" thru? where is it breaking? is it running
once and then stopping? are you getting a failed macro box showing the
failed step? what process are you using to de-increment the table value? a
note there: instead of putting a value in a table, and de-incrementing it,
it might be a lot easier to set up a hidden, unbound control on a form. set
the value of the control in the macro, then set the Repeat Count to
=[Forms]![MyForm]![MyTextBox].[Value]
leave Repeat Expression blank.
run the macro from a command button on the form.
hth
I have set up a control table and move the quantity to
make into a field named "MakeNr." Have housekeeping
queries to decrement MakeNr by 1 each time the macro
runs. Repeat expression used: [Test MakeNr table]!
[MakeNr]>0. This tests True until MakeNr reaches 0 then
False. All queries test okay but macro just won't run.
Have also set up field to check and everything, the
decrementing and True/False seem okay. Is there
something wrong with my expression syntax? I have written
several systems in Access but still learning. Thanks
again. Jim
-----Original Message-----
please post the expression you're using, and any details
connected with it.
message
I am attempting to use the RunMacro cmd to append
records
to a table a specified number of times. Everything
works
except the "Repeat Expression." Using the "Count"
works
but I can't get ANY expression to let it run. Anyone
got
any ideas? Samples of expressions comparing two
fields?
Thanks.
.
.