Odeh Naber
New member
- Local time
- Today, 23:27
- Joined
- Oct 16, 2015
- Messages
- 7
Hello everyone!
I'm working on an MS Access form setup where I have two unbound subforms and need some help with the following functionality:
(also, more hotels could be added in the future so as I add them in a separate form, the new ones should automatically appear in Subform 2)
What I want to achieve:
I think I am on the right track. I believe I am supposed to place some SQL code in the products form on the OnCurrent event property, and in the OnClick on the checkbox to update the junction table T_Assignments. But I am struggling to get anything to work. I would appreciate anyone's help.
I am on Windows 11 + Office 365. Thank you in advance.
I'm working on an MS Access form setup where I have two unbound subforms and need some help with the following functionality:
- Subform 1: Lists products from the T_Products table in a continuous form.
- Subform 2: Lists hotels from the T_Hotels table, each with a checkbox.
(also, more hotels could be added in the future so as I add them in a separate form, the new ones should automatically appear in Subform 2)
What I want to achieve:
- When I click a product in Subform 1, Subform 2 should display all hotels with unchecked checkboxes (initially as I have not yet associated any products with hotels).
- I should then be able to check hotels to associate them with the selected product.
- When I select another product and then come back to the first one, the checkboxes in Subform 2 should reflect the saved selections (i.e., the hotels previously checked should stay checked).
I think I am on the right track. I believe I am supposed to place some SQL code in the products form on the OnCurrent event property, and in the OnClick on the checkbox to update the junction table T_Assignments. But I am struggling to get anything to work. I would appreciate anyone's help.
I am on Windows 11 + Office 365. Thank you in advance.