I'm working on an Access database that has a main table that keeps track of basic user information and several sub-tables that have a one-to-many relationship to the main. Now all users are in one of two groups, which they can move between, and half of the tables only apply to one group. Which group a user is in is determined by a Boolean.
How I intended to set up the the various forms and sub-forms was to have the main form based on the queries:
SELECT *
FROM Foo
WHERE InGroup1 = TRUE
and
SELECT *
FROM Foo
WHERE InGroup1 = FALSE
and then add the appropriate sub-forms.
However, what keeps happening is that if there isn't a record in the sub-table associated with the currently selected ID of the main table, it just displays the first record in the table.
If I make a main form not based on a query it works fine, but then the two groups are mixed together.
Is there a way around this?