473,395 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Creating Forms and Reports for a simple Many To Many relationship

If you look at this page on relational database design:

http://r937.com/relational.html

And scroll down to the "Many-to-Many Relationships" Section you will
see a common database structure.

I can not find a simple way to create forms and reports in Access that
allow you to enter and display data in a structure such as this.

It is easy to create a form with the wizard that allows you to enter
data into a single table.

If I want to populate the middle table (Which I will call the "Linking
Table") I don't want to have to key in the unique Identifiers of the
other 2 tables.

How can one set up a form in Access that allows you to select data
(say, from a combo box) from each of the 2 data tables to populate the
linking table?

Also - how can you produce a report that would look something like the
following (loosely based on the tables from the URL I posted above)

Patient 1: Earle
Insurer: Sentry Insurance
Insurer: Wausau Insurance

Patient 2: Earle's Brother
Insurer: State Farm

Patient 3: Earle's Mom
Insurer: AllState
Insurer: Sentry Insurance

Dec 12 '06 #1
4 3440
"aflat362" <fl*****@gmail.comwrote in
news:11**********************@79g2000cws.googlegro ups.com:
If you look at this page on relational database design:

http://r937.com/relational.html

And scroll down to the "Many-to-Many Relationships" Section
you will see a common database structure.

I can not find a simple way to create forms and reports in
Access that allow you to enter and display data in a structure
such as this.
Using the example structure,
I would use a subform on the patient table that displays the
tblPtInsurancePgm rows for that patient and a combobox whose
rowsource is tblInsurer is bound to the
tblPtInsurancePgm.InsurerID

A subform will automatically populate the related parent field
when creating a new record, so the task is then reduced to
clicking on the * row of the subform and choosing a supplier
from the combobox.

Use a subreport in the same fashion.
>

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Dec 12 '06 #2

Bob Quintal wrote:
"aflat362" <fl*****@gmail.comwrote in
news:11**********************@79g2000cws.googlegro ups.com:
If you look at this page on relational database design:

http://r937.com/relational.html

And scroll down to the "Many-to-Many Relationships" Section
you will see a common database structure.

I can not find a simple way to create forms and reports in
Access that allow you to enter and display data in a structure
such as this.

Using the example structure,
I would use a subform on the patient table that displays the
tblPtInsurancePgm rows for that patient and a combobox whose
rowsource is tblInsurer is bound to the
tblPtInsurancePgm.InsurerID

A subform will automatically populate the related parent field
when creating a new record, so the task is then reduced to
clicking on the * row of the subform and choosing a supplier
from the combobox.

Use a subreport in the same fashion.


--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com
Thanks - I created a new form using the wizard and selected subform.

I notice that its default behavior is to allow me to manually enter
data into the form.

Going back to the patient / insurer example - In order to link a
patient to an insurer
I have to type the Insurer info in again. Not good since if I type it
wrong I just get duplicates.

So - I went into design view of the form and made the ID field a combo
box and set the row source to a SQL query of my equivalent of the
Insured table.

Now the drop down is populating but when I select a row in the drop
down - it is not being magically added to my subform as I had wished.

Any idea what I'm missing? If you feel like it - I can email you my
database (its small)

Dec 13 '06 #3
"aflat362" <fl*****@gmail.comwrote in
news:11**********************@j44g2000cwa.googlegr oups.com:
>
Bob Quintal wrote:
>"aflat362" <fl*****@gmail.comwrote in
news:11**********************@79g2000cws.googlegr oups.com:
If you look at this page on relational database design:

http://r937.com/relational.html

And scroll down to the "Many-to-Many Relationships" Section
you will see a common database structure.

I can not find a simple way to create forms and reports in
Access that allow you to enter and display data in a
structure such as this.

Using the example structure,
I would use a subform on the patient table that displays the
tblPtInsurancePgm rows for that patient and a combobox whose
rowsource is tblInsurer is bound to the
tblPtInsurancePgm.InsurerID

A subform will automatically populate the related parent
field when creating a new record, so the task is then reduced
to clicking on the * row of the subform and choosing a
supplier from the combobox.

Use a subreport in the same fashion.
>


--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Thanks - I created a new form using the wizard and selected
subform.

I notice that its default behavior is to allow me to manually
enter data into the form.

Going back to the patient / insurer example - In order to link
a patient to an insurer
I have to type the Insurer info in again. Not good since if I
type it wrong I just get duplicates.

So - I went into design view of the form and made the ID field
a combo box and set the row source to a SQL query of my
equivalent of the Insured table.

Now the drop down is populating but when I select a row in the
drop down - it is not being magically added to my subform as I
had wished.

Any idea what I'm missing? If you feel like it - I can email
you my database (its small)
Ok, send it to me. I'll try to figure out what's missing.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Dec 14 '06 #4


On Dec 13, 5:54 pm, Bob Quintal <rquin...@sPAmpatico.cawrote:
"aflat362" <flat...@gmail.comwrote innews:11**********************@j44g2000cwa.google groups.com:


Bob Quintal wrote:
"aflat362" <flat...@gmail.comwrote in
news:11**********************@79g2000cws.googlegr oups.com:
If you look at this page on relational database design:
http://r937.com/relational.html
And scroll down to the "Many-to-Many Relationships" Section
you will see a common database structure.
I can not find a simple way to create forms and reports in
Access that allow you to enter and display data in a
structure such as this.
Using the example structure,
I would use a subform on the patient table that displays the
tblPtInsurancePgm rows for that patient and a combobox whose
rowsource is tblInsurer is bound to the
tblPtInsurancePgm.InsurerID
A subform will automatically populate the related parent
field when creating a new record, so the task is then reduced
to clicking on the * row of the subform and choosing a
supplier from the combobox.
Use a subreport in the same fashion.
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account fromhttp://www.teranews.com
Thanks - I created a new form using the wizard and selected
subform.
I notice that its default behavior is to allow me to manually
enter data into the form.
Going back to the patient / insurer example - In order to link
a patient to an insurer
I have to type the Insurer info in again. Not good since if I
type it wrong I just get duplicates.
So - I went into design view of the form and made the ID field
a combo box and set the row source to a SQL query of my
equivalent of the Insured table.
Now the drop down is populating but when I select a row in the
drop down - it is not being magically added to my subform as I
had wished.
Any idea what I'm missing? If you feel like it - I can email
you my database (its small)Ok, send it to me. I'll try to figure out what's missing.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account fromhttp://www.teranews.com

Thank you,

I'm on vacation this week and I'll send it out next week ( no big hurry
)

--Allan

Dec 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jonathan LaRosa | last post by:
Hi all - I'm wondering if anyone has (or knows of) a tool that will allow me to search through VB code, tables, queries, reports, forms, and other objects, for references to all other types of...
2
by: Sami | last post by:
Could someone explain clearly how to go about doing this? I have tried setting up the structure on numerous occasions, but it never seems to work. Could someone please help me out? Thanks!
1
by: longtim | last post by:
I have been having endless difficulty creating reports/queries that set any relevent parameters from controls in forms. I am creating an application under access 2003 but will target access...
2
by: Dave | last post by:
Our company intranet allows various users to submit address information and contact names and numbers using ASP pages, that save to an Access 2000 database. There are no issues with retrieving,...
2
by: misscrf | last post by:
I have a search form that is great. I have modified it in such a way, that when search results come up I can bring it back to a useful spot, say an entry form or a report. Here is my lemon (...
5
by: Mike Turco | last post by:
What is the difference between creating relationships in the front-end vs. the back-end database? I was trying to create a relationship in a database front-end and noticed that I could not check...
3
by: CAD Fiend | last post by:
Hello, I have a land development project that has a many-to-many relationship. I have ONE question regarding table structures, and ONE question on how to make a Form with two Subforms, below. ...
4
by: sklett | last post by:
I've developed an ERP application that we use internally and works quite well. I receiving more and more requests from users to print various transactions, order forms, search results, etc. I...
2
by: adwest | last post by:
Forgive me if this is a foolish question. I "play" in Access and have only created a few rather simple relational databases. My knowledge and experience is limited. I have no formal training, just...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.