Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drag and drop from listbox

Status
Not open for further replies.

JR2913

MIS
Sep 21, 2002
115
GB
I am trying to use drag and drop to select an item from a list box on a subform and drop it into a textbox on another form.

I can't get the data selected by clicking to remain with the mouse as it moves across the subform towards the other form - it just continues scrolling down the list. When I move the mouse over the text box the last item currently highlighted in the list box is dropped into it.

Can someone please provide the code that would be needed to 'fix' the item selected in the list box?

Many thanks

JR
 
Perhaps I should add that I have used the content of Q153036 on the Microsoft site as the basis for the script so far generated for event procedures and the DragStart, DragStop and DropDetect procedures.

Some advice urgently needed, here, please........


JR
 
OK cracked it by myself - by keeping the shift key pressed down and with some little tweaks in the script to refresh the data when the contents of the text box are changed, works a treat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top