Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2006

Tip: Looking for answers? Try searching our database.

Many to Many Relationships

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave Newington - 23 Oct 2006 13:52 GMT
I have a small database with many to many relationships where the
intersection entities have no data other than the relevant foreign keys. I
would like to know if it's possible to query records in the "secondary" table
using an InfoPath form. I.e. An Application runs in many Sites, and a Site
has many Applications running there. I will be initiating the queries using
either of the two tables as primary. I don't mind having two forms, one for
each direction of search.

If possible, I would like to query, for example, which sites are running a
selected Application, and if a Site is missing from the list, select the
relevant Site from a drop-down list to link it to the Application.
S.Y.M. Wong-A-Ton - 24 Oct 2006 10:34 GMT
Taking your last example: You can create a form that is bound to the
database. Then when setting up the tables for your Main data connection, add
the applications table first and then the "join table" to the sites as a
child of the application table. Set up the relationship between the two via
the application id in both tables. Once you've done that, you can drag
controls to your form. For the sites side: Add a secondary data connection to
the sites table. Then you can convert any text field showing the id for a
site on your form into a drop-down list box and bind the drop-down list box
to the secondary data source, so that you can select the sites from a list.
Note: The sites must exist beforehand (pre-fill the sites table), because you
won't be able to add them using this form for the application.

It's quite difficult to explain, so if you did not understand something, ask
away.
---
S.Y.M. Wong-A-Ton

> I have a small database with many to many relationships where the
> intersection entities have no data other than the relevant foreign keys. I
[quoted text clipped - 7 lines]
> selected Application, and if a Site is missing from the list, select the
> relevant Site from a drop-down list to link it to the Application.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.