|
-
Jun 20th, 2004, 09:59 PM
#1
Thread Starter
New Member
Drag and drop help
Hello everyone!
I'm developing a database in MS Access 2002,and I am wondering if it is possible to perform a drag/drop action in 2 listboxes in VBA,as well as between 2 subforms(the subforms each display tables,and I really only need to get drag/drop working on a per field basis,meaning,the user can only select and drag one value of a field and drop it in the other subform).
I am still very new at VBA,and I am developing the database as part of my course here in college.
All the books I have picked up from the library have been unable to help,and I have been unable to find any sample code on drag drop actions in VBA.
-
Jun 21st, 2004, 03:46 AM
#2
Drag n drop - in Access - not really possible. As to the subforms
hheee hehehe hah hahah
(from past experience)
You can't do much with subforms, especially interacting between the parent form and the subform.
At least this was the case in 97 and 2000, there just wasn't any functionality to do anything useful with them.
Ok, that said you wanta drag n drop facility, would look nifty, here are a couple of options you could look into:
- Two listboxes, one holding all fields available, one with those selected, they move from one list to the other
- An active X control, which could possibly use drag n drop, but I don't know if one exists already or whether you'd need to code your own
- API calls to enable drag n drop - worth while learning these. You'd probably need to search online to get Vb coding as Microsoft.com seem to like putting all their examples into C
There are other ways I expect.. always are. As to whether the Access 2002 can do it, if you make it do it with subforms, please please please post up how you did it. I'd wanna know 
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|