I have a master contacts table for a firm and want to allow each individual at the firm to choose a subset of these contacts as his/her personal contact list. I've created a detail table with two fields, ContactID and EmployeeID to contain the personal list data. I added a Y/N field to the master table where an individual can check off the contacts he wants on his list and then wrote a module which loops through master table recordset, adding records to the detail table based on the Y/N field, and at the end, clears the checks from the master Y/N field. But it occurs to me that with this procedure, if two users try to create personal lists at the same time, they will alter each other checks in the Y/N field. I don't want to require a user to have to open the db exclusively when creating his list. I was thinking that it should be possible to write code to create a copy of the master table on the fly with a unique name, say a time stamp, and delete it at the end of the process. Then simultaneous users couldn't interfere with each other.
But I can't figure out how to create a copy of a table in VBA.
Two questions:
(1)To begin with, is this the best way to get data for the detail table.
(2)If so, how do I create the copy of the master table in VBA.
But I can't figure out how to create a copy of a table in VBA.
Two questions:
(1)To begin with, is this the best way to get data for the detail table.
(2)If so, how do I create the copy of the master table in VBA.