Solved

MS Access 2010 Drag item from list box

Posted on 2013-01-20
3
590 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now