Mass tie of items in one table to category in another table

mapakunk

New Member
Joined
May 7, 2002
Messages
40
I have a contact database table named MCL. There is a field in this list that ties them to a paticular group (GroupNo)
I have another table titled groups (fields: ID (Pkey) GID (number), Leader, Asst)
I want to tie contacts to a paticular group.
Is there a way on the group form to select multiple entries from the contact databse to tie to the group all at once from say a check box selection or something similar.?

I have a group form, with the MCL subform. and the tie between them is the GroupNo. Does that make sense? :eek:
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Re: Mass tie of items in one table to category in another ta

You might need to change the logic a bit. The link from Groups to MCL must use the primary key for Groups (in your case, ID). Once you have that, you can do the following:

Build the Groups form. Leave room at the bottom for a subform (this will be the users, based on MCL).
Using the Wizard, create the users subform. You'll need the UserID, the ID from the Groups table, Phone, and other contact details. Don't worry with the Name -- we'll tie that to UserID with a combo box. When you have all the fields you need, select the Datasheet option for display. This is usually the best way to display a subform. Save it as subUser, and close.
Now open subUser. You need to go to Design view, right-click the UserID field, and Convert to | ComboBox. Now select the Properties of the ComboBox. Click the builder button (...) in the RowSource property and you'll see the grid. This should just have the UserID field. In the adjacent (blank) field, create an expression : [FirstName] & " " & [LastName]. This will show Bugs Bunny (or whatever).
A different option would be [LastName] & ", " & [FirstName]. This will show Bunny, Bugs.
OK. Close, save when prompted, and change Columns (or ColumnCount) to 2. Change ColumnWidths to 0;3 (this hides the key field and shows the names).
Close the form and save.

Now the cool bit.

Open the Groups form in design view, and Restore so you can see the database container. Press the F11 key to bring the database container to the front. Click the subUser form icon, drag it onto the Groups form, and let go. Now right-click the subform, select properties, and check that the Parent (or Master) and Child fields are both ID. If not, edit them so they are. This synchronises the main and subforms.
Save, go to Datasheet view.

Now you have a series of Groups. To add new members, you click in the first field in the subform, and pick their names from the drop-down.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,596
Messages
6,160,716
Members
451,665
Latest member
PierreF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top