Hi Ken. Thanks for the info. Regarding my macro, I don't think it has
more
than 999 actions. Most of it just verifies rules (if you select this, you
cannot also select that) and some of it uses the SetValues command. The
problem part is this: I have a main form with a sub form for creating fee
bills. On that sub form there are 3 sub sub forms that each check for
items
that, if they have occured, require a charge. One searches for records
that
apply to the contract being billed in the amendment table, another the
lost
participant search table and the third checks the participant statements
table. If I am creating a fee bill for GP1289, my 3 sub sub forms are
showing, if any, records that apply to GP1289. I have a text field on my
sub
form that is 'reading' the record counts from the 3 sub sub forms and IIf
IsError = 0 otherwise show the record count from the sub sub form. So,
when
I click my Validate Button to run the macro, part of the macro is to
SetValue
from those text boxes ([SubAmdmt], [SubSearch] and [SubStmt]) to my actual
form fields ([AmdmtNum], [SearchNum] and [StmtNum]) and another SetValue
to
multiply that new number in the form field and put the result in another
actual form field ([AmdmtNum] * 150; [SearchNum] * 10; and [StmtNum] *
1.25).
Problem is this, when I add this to my macro and run it, only one of the 3
sets is being updated. If I change their order in my macro, whatever one
is
first gets done. Two lines of the macro work, that's it. I've tried with
and without the elipsis and with and without conditions. I've made a
macro
for each sub sub form's SetValue commands and if I click each button, all
3
get updated. Do I need some sort of pause command? Can't figure it out.
I
have even created a separate macro and named each sub sub form's steps and
in
my Validate macro, inserted the RunMacro command. I've put them one after
the other as well as insert each of them throughout the macro body.
Still,
only the first one works.
Hope I gave you enough but not too much detail above. Now I'm worried
about
what other lines in my macros might be just pretending to work? I don't
get
any errors or messages when I run it. Thanks for your help!
--
Bonnie
Ken Snell said:
From the database window, type "Specifications" into the Help box. Press
Enter. You'll get the limits that you seek:
Attribute
Maximum
Number of actions in a macro 999
Number of characters in a condition 255
Number of characters in a comment 255
Number of characters in an action argument 255
As for why the macro isn't working for the second step, you'll have to
tell
us more about what the macro steps are and the arguments for each step.
--
Ken Snell
<MS ACCESS MVP>
Hi there. Using A02 on XP. Tried to add a few sets of conditional
SetValue
lines in my macro. Had trouble, went to help, could have sworn I saw
something about macros can only have so many lines (255?) etc. My
macro
has
LOTS of lines. Do you get an error or does the macro just perform so
many
lines and then just stop? Why should my first SetValue work and my
second
one
not? If I switch their order, the first one works and the second one
does
not. No elipsis on lines.
Any ideas or suggestions? Is there a place I can read up on this?
Couldn't
find it again in help.
Thanks in advance!