S
Stephanie Sollow
Short question, long preface:
I have 5 option groups on the same form, and each has 8
options. It's a workshop with several sessions, so Session
A has 8, and the first option's value is 1, etc. (it
itself is a subform to another that contains the
registrants info).
What I would like it to do is either notify or indicate
when the particular session has reached its max of 30
participants. I've got various parts of it to work (such
as the notify part), but I can't seem to it get to count
the number of "true" instances for each option in each
option group... Currently I have 5 queries for each
Session (A - E), tied to a command button that when
clicked prompts for the correct session (1-8) (e.g.,
clicking button and entering 1 displays a datasheet for
each person registering for Session A1). So, I run the
same query 8 times per session... ugh! It was a kludge...
Anyway, what I want to be able to do, in pseudo code: if
count of [Option162].OptionValue=1 is = 30 then display
msg. (I haven't named the options yet, but Option162 would
correspond to Session A1). I've tried all sorts of ways to
make that logic work; so much so my head is spinning. And
short of adding 40 tiny subforms that display the results
of the query... (which would work, but be inefficient) ...
we don't care for this info, who signed up, just that as
we add new registrations, we will know when each fills up.
I'm just wondering if even counting the number of true
instances for each OptionValue is doable...
Thanks
I have 5 option groups on the same form, and each has 8
options. It's a workshop with several sessions, so Session
A has 8, and the first option's value is 1, etc. (it
itself is a subform to another that contains the
registrants info).
What I would like it to do is either notify or indicate
when the particular session has reached its max of 30
participants. I've got various parts of it to work (such
as the notify part), but I can't seem to it get to count
the number of "true" instances for each option in each
option group... Currently I have 5 queries for each
Session (A - E), tied to a command button that when
clicked prompts for the correct session (1-8) (e.g.,
clicking button and entering 1 displays a datasheet for
each person registering for Session A1). So, I run the
same query 8 times per session... ugh! It was a kludge...
Anyway, what I want to be able to do, in pseudo code: if
count of [Option162].OptionValue=1 is = 30 then display
msg. (I haven't named the options yet, but Option162 would
correspond to Session A1). I've tried all sorts of ways to
make that logic work; so much so my head is spinning. And
short of adding 40 tiny subforms that display the results
of the query... (which would work, but be inefficient) ...
we don't care for this info, who signed up, just that as
we add new registrations, we will know when each fills up.
I'm just wondering if even counting the number of true
instances for each OptionValue is doable...
Thanks