This seems relatively simple, and of course I can get it to work, but not the way I want.
I have a search results form that displays a list box using two columns (first column stores ID and is hidden). When I select the item in the list box to paste into a different form, the value pasted is of course the value from the first (ID) column. I need to get the value from the second column pasted but the
DoCmd.GoToControl MyListBox.Column(1)
DoCmd.RunCOmmand acCmdCopy
gives me the following debug msg:
RunTime Error 2019
There is no field named "ListBox Column 1 contents" in the current record.
Any suggestions on what I cando instead?
Thx
I have a search results form that displays a list box using two columns (first column stores ID and is hidden). When I select the item in the list box to paste into a different form, the value pasted is of course the value from the first (ID) column. I need to get the value from the second column pasted but the
DoCmd.GoToControl MyListBox.Column(1)
DoCmd.RunCOmmand acCmdCopy
gives me the following debug msg:
RunTime Error 2019
There is no field named "ListBox Column 1 contents" in the current record.
Any suggestions on what I cando instead?
Thx