Hello. I expect the answer to my question is quite easy, however I did not manage to find the answer through searching the forums.
I have three tables for which I would like to create a data entry form. The tables will contain the answers to a questionnaire.
Table 1: contains text field answers and the id for the questionnaire.
Table 2: contains a list of values, which are used as answering possibilities for one of the questions. the user can choose more than one value.
Table 3: contains references between the two tables.
So by example the tables could be filled like this:
Now I would like to have one single form to do the data entry for those tables. I created one, setting it's data source to be a query, which joins the three tables. After that I added the fields by dragging them into the form from the field list pane. I used a multiselect listbox for the data from table 2 and set the relationships correctly through the database tools ribbon.
Unfortunately the text field shows the correct values, and I can successfully add new data to table 1 through this form. However, the listbox, even though showing all the correct values, is inactive: I can not select any of the values in the listbox. Also if I add values to table 3 manually, the correct values are not shown as selected on the listbox.
How can I get the listbox activated and showing the selected values? I think I would be able to do it if I would code it all in VBA, but I was hoping that this was possible without VBA coding.
Thanks in advance.
I have three tables for which I would like to create a data entry form. The tables will contain the answers to a questionnaire.
Table 1: contains text field answers and the id for the questionnaire.
Table 2: contains a list of values, which are used as answering possibilities for one of the questions. the user can choose more than one value.
Table 3: contains references between the two tables.
So by example the tables could be filled like this:
Code:
Table 1
-------------
ID: 1
Name: User1
-------------
ID: 2
Name: User2
Table 2
-------------
ID: 1
Value: Value1
-------------
ID: 2
Value: Value2
-------------
ID: 3
Value: Value3
Table 3
-------------
ID: 1
table_1_id: 1
table_2_id: 1
-------------
ID: 1
table_1_id: 1
table_2_id: 2
-------------
ID: 1
table_1_id: 2
table_2_id: 3
Now I would like to have one single form to do the data entry for those tables. I created one, setting it's data source to be a query, which joins the three tables. After that I added the fields by dragging them into the form from the field list pane. I used a multiselect listbox for the data from table 2 and set the relationships correctly through the database tools ribbon.
Unfortunately the text field shows the correct values, and I can successfully add new data to table 1 through this form. However, the listbox, even though showing all the correct values, is inactive: I can not select any of the values in the listbox. Also if I add values to table 3 manually, the correct values are not shown as selected on the listbox.
How can I get the listbox activated and showing the selected values? I think I would be able to do it if I would code it all in VBA, but I was hoping that this was possible without VBA coding.
Thanks in advance.