G
Guest
I have a Users table, and the users can belong to one or more Groups. I made
an integer field called Group and assigned a bit to each group they can join
or leave. Maybe this design is not good, it seemed like a good idea at the
time...
So, I have a Users form where the operator wants to select which group's
users they're seeing. I gave it a Group combo, then tried to filter the form
based on it like so:
dim tval as int
tVal = Not GroupCombo.Value
Forms("Usersandgroups").Filter = "[user_groups] = [user_groups] | " & tVal
This works logically but not syntactically.
Is there a way to do this? I'm open to a completely different approach if
necessary, as long as it works for users belonging to one or multiple groups.
What I really wanted to do is Filter = [user_groups] & GroupCombo.Value =
GroupCombo.Value, but that syntax is even less correct (the left side is not
a valid field).
Thanks,
Will
an integer field called Group and assigned a bit to each group they can join
or leave. Maybe this design is not good, it seemed like a good idea at the
time...
So, I have a Users form where the operator wants to select which group's
users they're seeing. I gave it a Group combo, then tried to filter the form
based on it like so:
dim tval as int
tVal = Not GroupCombo.Value
Forms("Usersandgroups").Filter = "[user_groups] = [user_groups] | " & tVal
This works logically but not syntactically.
Is there a way to do this? I'm open to a completely different approach if
necessary, as long as it works for users belonging to one or multiple groups.
What I really wanted to do is Filter = [user_groups] & GroupCombo.Value =
GroupCombo.Value, but that syntax is even less correct (the left side is not
a valid field).
Thanks,
Will