S
SusanV
Good morning all,
I need to create an Option Group to filter records on a continuous form, but
the option group will have a different number of choices and different
labels depending on which set of records the user is currently viewing. For
instance, if he is viewing AFS records, I need 3 choices, Sirius, Saturn and
Spica - or perhaps, in some cases, only the Sirius and Saturn. Similarly, if
he is viewing ATF records, I need 4 choices, Apache, Navajo, Catawba and
Sioux, but perhaps only 2 or 3 of these depending on the current record.
I already have this data (which ones would need to be included for each
record) stored in a table which is part of the recordsource for the form,
but can't seem to find any info on creating the option group on the fly to
include only the valid choices.
The source table is structured like so (fields are RepNum/Text, Vess/Text
and Included/YesNo):
ATF-001 Apache True
ATF-001 Catawba False
ATF-001 Navajo True
ATF-001 Sioux True
ATF-002 Apache True
ATF-002 Catawba True
ATF-002 Navajo True
ATF-002 Sioux True
AFS-001 Sirius True
AFS-001 Spica False
AFS-001 Saturn True
AFS-001 Sirius True
AFS-001 Spica True
AFS-001 Saturn True
So for the above records, I would want to show ONLY the number of options
where Included = TRUE, labeled as the data in the field Vess. I've already
got the form filtered by RepNum, so now it's a matter of grabbing the data
from the other 2 fields for the Option Group filter.
This *seems* like it ought to be simple enough, but i can't seem to work it
out. Hopefully this is clear enough that someone can point me in the right
direction!
TIA,
Susan
I need to create an Option Group to filter records on a continuous form, but
the option group will have a different number of choices and different
labels depending on which set of records the user is currently viewing. For
instance, if he is viewing AFS records, I need 3 choices, Sirius, Saturn and
Spica - or perhaps, in some cases, only the Sirius and Saturn. Similarly, if
he is viewing ATF records, I need 4 choices, Apache, Navajo, Catawba and
Sioux, but perhaps only 2 or 3 of these depending on the current record.
I already have this data (which ones would need to be included for each
record) stored in a table which is part of the recordsource for the form,
but can't seem to find any info on creating the option group on the fly to
include only the valid choices.
The source table is structured like so (fields are RepNum/Text, Vess/Text
and Included/YesNo):
ATF-001 Apache True
ATF-001 Catawba False
ATF-001 Navajo True
ATF-001 Sioux True
ATF-002 Apache True
ATF-002 Catawba True
ATF-002 Navajo True
ATF-002 Sioux True
AFS-001 Sirius True
AFS-001 Spica False
AFS-001 Saturn True
AFS-001 Sirius True
AFS-001 Spica True
AFS-001 Saturn True
So for the above records, I would want to show ONLY the number of options
where Included = TRUE, labeled as the data in the field Vess. I've already
got the form filtered by RepNum, so now it's a matter of grabbing the data
from the other 2 fields for the Option Group filter.
This *seems* like it ought to be simple enough, but i can't seem to work it
out. Hopefully this is clear enough that someone can point me in the right
direction!
TIA,
Susan