click and drag

L

Lee Taylor-Vaughan

Hi group,

I was wondering, can access do click and drag features. i.e. 2
subforms/listsboxes on a form and click and drag one record between the two
subforms/listboxes.

TIA

Lee
 
A

Allen Browne

Access is not really set up to do this, but you can fudge it.

With a simple list box, clicking selects the record, so it becomes the Value
of the listbox.
The MouseUp event of the list box that was clicked gives an x,y reference so
you can figure out if the user was over the other list box when they
released the mouse.
The "move" consists of executing action query statements, and requerying the
list boxes.

This drag'n'drop functionality may not be obvious to the user. It may be a
better interface to place two command buttons between the list boxes, each
with an arrow. Clicking the arrow moves the selected item(s) to the other
box. You could also respond to the double click of the list box. The Access
wizards use this approach.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top