Al,
At the end of the macro, I had started with just the SetValue line below,
but that's when the error message started showing up. (When I don't include
the SetValue line, I don't get an error message, but I need to reset the
date.) When the error message started popping up, I added the SelectObject
and GoToControl to make sure I was back on the form after the email gets
sent. It is the SetValue line that is causing the error. It does reset the
[ActionDate] to null, but the error pops up anyway.
Condition Action
Parameters
------------------------------------------------- -------
--------------
[JobAction]=7 And [ActionDate] Is Not Null SelectObject Object Type =
Form, Object Name = VForms, In Database Window = No
[JobAction]=7 And [ActionDate] Is Not Null GoToControl Control Name =
[ActionDate]
[JobAction]=7 And [ActionDate] Is Not Null SetValue Item =
[ActionDate], Expression = Null
Thanks!
:
Marie,
You probably have a syntax error in one of the macro actions.
Please give details of each macro, and the arguments you use.
--
hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions
"Find a job that you love, and you'll never work a day in your life."
I get error "Microsoft Office Access can't find the field '|' referred to in
your expression. From a form, I execute a macro that (1) checks bunches of
fields, (2) sends an email, and then (3) returns to the form and resets a
field on the form. Even though the macro correctly resets the field on the
form, when the macro completes it displays the error message. Any ideas?