Solved

Access vba visual field linking

Posted on 2014-04-17
2
589 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 35

Accepted Solution

by:
PatHartman earned 300 total points
ID: 40007857
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
ID: 40008725
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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