MarkRobinson
Programmer
A form contains two listboxes displaying items from two tables (Table1 and Table2). The user has selected one item in each listbox.
A NEXT button adds a record to a Table3 with the id# of each item selected.
I'm looking for help with the code for the button. How do I identify the id# of the item selected?
Table 1
ID - Name
1 Item1
2 Item2
3 Item3
Table2
ID2 - Name2
1 2Item1
2 2Item2
3 2Item3
User selects Table1:Item2 and Table2:2Item3 and they are highlighted. Clicks Next
A new row in Table3 is added to read
2 3
I think the command I'm looking for to print the ID# is something like
Debug.Print Form.Table1.Selected.Id
... but not quite (or even close).
Also, is there an easy way I can select one from Table 1 and several from Table 2, building several new records in Table3?
Thanks!!
A NEXT button adds a record to a Table3 with the id# of each item selected.
I'm looking for help with the code for the button. How do I identify the id# of the item selected?
Table 1
ID - Name
1 Item1
2 Item2
3 Item3
Table2
ID2 - Name2
1 2Item1
2 2Item2
3 2Item3
User selects Table1:Item2 and Table2:2Item3 and they are highlighted. Clicks Next
A new row in Table3 is added to read
2 3
I think the command I'm looking for to print the ID# is something like
Debug.Print Form.Table1.Selected.Id
... but not quite (or even close).
Also, is there an easy way I can select one from Table 1 and several from Table 2, building several new records in Table3?
Thanks!!