G
Guest
I have a Users table, and each user can be a member of one or more groups. I
used a single integer Group field, and assigned a bit to each group they
could join (group1 = bit1, group2 = bit2, etc.) That way I can just use
bitwise operations on the field as they join or leave groups. Maybe this is
not a good approach, it seemed good at the time...
So, I have a Users form, where I want the operator to be able to select
which group's users they're looking at. I made a combo box with the groups in
it, but I can't figure out how to filter on the group. I was trying something
like: tval = Not GroupCombo.Value; Forms("Users").Filter = "[user_groups] =
[user_groups] | " & tVal, which works logically but not syntactically.
How should I be doing this? I'm open to a completely different approach if
necessary. The problem is that users can belong to more than one group...
Thanks,
Will
used a single integer Group field, and assigned a bit to each group they
could join (group1 = bit1, group2 = bit2, etc.) That way I can just use
bitwise operations on the field as they join or leave groups. Maybe this is
not a good approach, it seemed good at the time...
So, I have a Users form, where I want the operator to be able to select
which group's users they're looking at. I made a combo box with the groups in
it, but I can't figure out how to filter on the group. I was trying something
like: tval = Not GroupCombo.Value; Forms("Users").Filter = "[user_groups] =
[user_groups] | " & tVal, which works logically but not syntactically.
How should I be doing this? I'm open to a completely different approach if
necessary. The problem is that users can belong to more than one group...
Thanks,
Will