If your form's recordsource is a table, the SIMPLEST approach is to simply to put your form into Design mode, open the Properties window for your form, and change the RecordSource. As long as a ALL fields on the form exist in all the tables you might want to update, this would work. It would also DISPLAY records that already existed in the selected table (although you could later specify the form as data-entry-only if you wish). However, if your form's recordsource is a query, this approach becomes more complex.
Assuming you want a more elegant solution, such as selecting the table from a combo box, read on. Even if your form's recordsource is a query, you can adapt the approach, below, to select a table-specific version of the query you need (that is, one query for Group1, one query for Group2, etc.). Once again, this all assumes that ALL fields on the form exist in all the tables you might want to update.
STEP 1: Before going further, make a copy of your database as a backup.
STEP 2: Create a combo box on your form and name it "cmbWhich_Table". Add the following SQL as the RowSource. This will list all tables in your database. You can always edit it later so it only lists the tables or queries that you might want to update, but for the timebeing it will list ALL tables in your database:
Code:
SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)<>"~") And (Left$([Name],4)<>"Msys") And (MSysObjects.Type)=1 ORDER BY MSysObjects.Name
STEP 3: For the properties of this new combo box, select the "After Update" event and add the following code (where "Me" is VBA-short-hand for the current form and "cmbWhich_Table.Text" refers to the selected table name):
Code:
Private Sub cmbWhich_Table_AfterUpdate()
Me.RecordSource = Me!cmbWhich_Table.Text
Me.Requery
End Sub
... and that's it. Verify that the data you see after each table selection actually changes and actually refers to the table you selected.
You might decide to remove the form's default record source so NO table is selected when the table first opens (if so, see Properties/Data/RecordSource), but that isn't necessary for this to work. As I mentioned earlier, you can adapt this solution to work with queries. For more info, see
http://mvps.org/access/queries/qry0002.htm