I have a form with the following:
-A List Box (with hundreds of names) looking up values from a Table.
-Two buttons
-A Second List Box (also with names) looking up values from a Query.
I need help coding a macro for the two buttons. I would like to buttons to do the following:
- Button 1: When a name is highlighted in the first List Box, clicking on the button will copy the name and paste it into the second list box (or move it to another Table so it will show up in the ListBox Query).
- Button 2: The same as Button 1, except the other way around; clicking the button will take the highlighted name from the second List Box and put it back in the first List Box.
Any Ideas?
Thank you in advance.
-A List Box (with hundreds of names) looking up values from a Table.
-Two buttons
-A Second List Box (also with names) looking up values from a Query.
I need help coding a macro for the two buttons. I would like to buttons to do the following:
- Button 1: When a name is highlighted in the first List Box, clicking on the button will copy the name and paste it into the second list box (or move it to another Table so it will show up in the ListBox Query).
- Button 2: The same as Button 1, except the other way around; clicking the button will take the highlighted name from the second List Box and put it back in the first List Box.
Any Ideas?
Thank you in advance.