I'm hoping someone can throw some suggestions my way. Here's my problem:
I have an access subform with text boxes bound to fields returned in a query based on an order detail table. The Subform is being populated based on choices the user selects from 3 separate list boxes (as each list box is selected from, the next list box is populated based on the users selections). Because each list box is set up as multi-select, I am storing the values in a temp tables (first deleting the values for the specific user and then populating with the new selection(s) - this happens on the AfterUpdate event of each list box). Each of the temp tables that is populated with the users choices contains a field for the user ID (there can be large numbers of people working at the same time).
This works great for the selection process. However, once they select specific order headers to view details for, I am unable to retrieve an updatable recordset. The temp table contains the fields 'Contract', 'DelivDate', 'MealType', 'PONumber' and 'UserID'. All 5 fields are set as primary keys as I can't see excluding any of these fields as a primary. The query that the subform is based on joins this temp table to our order details table on contract ID, meal type, delivery date and PO number and uses the User ID in the where clause to only retrieve records for those orders that are in the temp table for that user. When I have it set up this way, the recordset comes back completely locked (there is no error message - the field simply acts as though it's locked property is set to True, which is is not - i checked ...). The only way that I have been able to open it up is to remove the user ID from the primary key for the table. I really don't want to do this as there could be more than one user working at one time.
Is there any way that I can get around this? I would welcome any suggestions that anyone has for me!
Thanks,
Melissa
I have an access subform with text boxes bound to fields returned in a query based on an order detail table. The Subform is being populated based on choices the user selects from 3 separate list boxes (as each list box is selected from, the next list box is populated based on the users selections). Because each list box is set up as multi-select, I am storing the values in a temp tables (first deleting the values for the specific user and then populating with the new selection(s) - this happens on the AfterUpdate event of each list box). Each of the temp tables that is populated with the users choices contains a field for the user ID (there can be large numbers of people working at the same time).
This works great for the selection process. However, once they select specific order headers to view details for, I am unable to retrieve an updatable recordset. The temp table contains the fields 'Contract', 'DelivDate', 'MealType', 'PONumber' and 'UserID'. All 5 fields are set as primary keys as I can't see excluding any of these fields as a primary. The query that the subform is based on joins this temp table to our order details table on contract ID, meal type, delivery date and PO number and uses the User ID in the where clause to only retrieve records for those orders that are in the temp table for that user. When I have it set up this way, the recordset comes back completely locked (there is no error message - the field simply acts as though it's locked property is set to True, which is is not - i checked ...). The only way that I have been able to open it up is to remove the user ID from the primary key for the table. I really don't want to do this as there could be more than one user working at one time.
Is there any way that I can get around this? I would welcome any suggestions that anyone has for me!
Thanks,
Melissa