Solved

MS Access 2010 Drag item from list box

Posted on 2013-01-20
3
595 Views
Last Modified: 2013-01-20
I want the user to be able to drag an item out of listbox A, bound to a table,  into unbound listbox B  OR unbound listbox C.  Seems like it should be simple, but I've been messing with it for hours with MouseDown, MoseMove events, but while mouse button is held down to drag, listbox A does not seem to lose focus.  Has anyone does this?
0
Comment
Question by:jriggin
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 38799203
Peter's Drag N Dropper is going to be the closest thing to doing this - the sample db does have a List box example - and I've used this several times:

http://www.peterssoftware.com/dd.htm

And ... re: "Seems this s/b simple .." ... well, not really.

mx
0
 
LVL 84
ID: 38799374
No points please -

There is no native drag-drop capability with Access controls. You can drag-drop some things  into an Access form or control, but moving items between two Access controls like that is just as mx said - you can't do it.

I too use Peter's DnD, and it works pretty nicely.
0
 
LVL 1

Author Closing Comment

by:jriggin
ID: 38799559
Thanks.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question