Solved

Access vba visual field linking

Posted on 2014-04-17
2
582 Views
Last Modified: 2014-04-18
I'm building an access form where I want to give the user the ability to link fields between two tables, just like what is offered in the query design view.

Is there something, i.e. an ActiveX control, that will display the field list of two tables and allow mouse-drag linking?

Thanks.
0
Comment
Question by:Phish_Head
2 Comments
 
LVL 34

Accepted Solution

by:
PatHartman earned 300 total points
Comment Utility
Yes and No.
One of the options of a combo/listbox is to show the field list of the table/query.  That's the yes part.  The No part is there is no built in drag and drop feature.  You will need to code your own.  For something like this, I don't actually implement drag and drop.  I use two multi-select listboxes with arrows between them - (>, >>, <, <<)  The double arrows bring everything one way or the other.  The single arrows move the selected items.
0
 

Author Closing Comment

by:Phish_Head
Comment Utility
Thanks, that's what I thought.  I'm currently using a combination of listboxes and nodes for the mouse drag which is close but I didn't know if there was a specific solution to replicate the query designer events.
Thanks for the help.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

762 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

9 Experts available now in Live!

Get 1:1 Help Now