473,387 Members | 1,890 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,387 software developers and data experts.

Need advice on table structure and on creating subforms

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.
TABLE STRUCTURE QUESTION:

There are two parts to this preface.
1) There are many properties, that can be owned by many owners, one
property owned by one owner, or one property owned by many owners, or
many properties owned by one owner. So, for example, some of the
property ownership descriptions are Separate Property (One Owner),
Separate Property (Multiple Owners), Community Property (Husband and
Wife), etc. So one of the fields that will be required for the table is
going to be OwnerType.

2) In addition, this project involves percentage of ownership both on
the SURFACE and BELOW the surface (aka Minerals). So, there could be a
scenario where there are two owners that own the surface (50%-50%), but
only ONE of the owners owns the BELOW surface (100%). There will have
to be two fields, SurfacePercent and MineralsPercent.

Currently, I have three tables tblOwner, tblProperty, and
lnktblOwnership. tblOwner has Name, Address, and SSN fields.
tblProperty has PropAddress, Township, Range, and AssessmentNo.
lnktblOwnership is a junction table. For sake of brevity, I have left
out the other 40+ remaining fields.

My question: Do I put the OwnerType field in the tblProperty (because
the type of ownership is unique to that particular address) or should it
be in the lnktblOwnership? And what about the Surface and
MineralPercent fields? Should those go in the lnktblOwnership?

FORM QUESTION:

I know how to create ONE form for ONE table. But I'd like to create a
form that will allow me to reference all 3 of the above tables as a
tabbed sub form. The 2 tabs are to be Owner Info, and Property Info.
I'd like the parent form to have fields of Name, Address, AssessmentNo
change as the user is clicking on the tabs of the sub forms to reflect
whatever position they are in the database. I just don't know how to
begin. Do I start with a form in design view? Or do I do one in the
Wizard then attach the TabControl and then SubForm/SubReport control?
I've tried both together and can't figure it out. If anyone can point
me to a "primer" for Sub forms I also gladly appreciate that.

Thanks in advance.

Phil.

Nov 13 '05 #1
3 1961
By process of elimination, both the owner type and the surface/mineral
information have to go in the junction table. Neither applies to all owners
of the property, so can't go in the property table; nor to all properties of
the owner, so can't go in the owner table.

The junction table most certainly does not have to be limited to the foreign
keys that link the many-to-many tables -- it is the logical place
appropriate for holding any information that is unique to that particular
linkage of the records in the many-to-many relationship.

Larry Linson
Microsoft Access MVP

"CAD Fiend" <pe******************@cox.net> wrote in message
news:42***************@cox.net...
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.
TABLE STRUCTURE QUESTION:

There are two parts to this preface.
1) There are many properties, that can be owned by many owners, one
property owned by one owner, or one property owned by many owners, or
many properties owned by one owner. So, for example, some of the
property ownership descriptions are Separate Property (One Owner),
Separate Property (Multiple Owners), Community Property (Husband and
Wife), etc. So one of the fields that will be required for the table is
going to be OwnerType.

2) In addition, this project involves percentage of ownership both on
the SURFACE and BELOW the surface (aka Minerals). So, there could be a
scenario where there are two owners that own the surface (50%-50%), but
only ONE of the owners owns the BELOW surface (100%). There will have
to be two fields, SurfacePercent and MineralsPercent.

Currently, I have three tables tblOwner, tblProperty, and
lnktblOwnership. tblOwner has Name, Address, and SSN fields.
tblProperty has PropAddress, Township, Range, and AssessmentNo.
lnktblOwnership is a junction table. For sake of brevity, I have left
out the other 40+ remaining fields.

My question: Do I put the OwnerType field in the tblProperty (because
the type of ownership is unique to that particular address) or should it
be in the lnktblOwnership? And what about the Surface and
MineralPercent fields? Should those go in the lnktblOwnership?

FORM QUESTION:

I know how to create ONE form for ONE table. But I'd like to create a
form that will allow me to reference all 3 of the above tables as a
tabbed sub form. The 2 tabs are to be Owner Info, and Property Info.
I'd like the parent form to have fields of Name, Address, AssessmentNo
change as the user is clicking on the tabs of the sub forms to reflect
whatever position they are in the database. I just don't know how to
begin. Do I start with a form in design view? Or do I do one in the
Wizard then attach the TabControl and then SubForm/SubReport control?
I've tried both together and can't figure it out. If anyone can point
me to a "primer" for Sub forms I also gladly appreciate that.

Thanks in advance.

Phil.

Nov 13 '05 #2
Thanks for your reply. I forgot to mention one thing, though. It turns out
after doing some checking, it IS possible to have ONE AssessmentNo with several
Township and Range values. Would this mean that I should make a junction table
to accomodate that relationship as well?

Larry Linson wrote:
By process of elimination, both the owner type and the surface/mineral
information have to go in the junction table. Neither applies to all owners
of the property, so can't go in the property table; nor to all properties of
the owner, so can't go in the owner table.

The junction table most certainly does not have to be limited to the foreign
keys that link the many-to-many tables -- it is the logical place
appropriate for holding any information that is unique to that particular
linkage of the records in the many-to-many relationship.

Larry Linson
Microsoft Access MVP

"CAD Fiend" <pe******************@cox.net> wrote in message
news:42***************@cox.net...
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.
TABLE STRUCTURE QUESTION:

There are two parts to this preface.
1) There are many properties, that can be owned by many owners, one
property owned by one owner, or one property owned by many owners, or
many properties owned by one owner. So, for example, some of the
property ownership descriptions are Separate Property (One Owner),
Separate Property (Multiple Owners), Community Property (Husband and
Wife), etc. So one of the fields that will be required for the table is
going to be OwnerType.

2) In addition, this project involves percentage of ownership both on
the SURFACE and BELOW the surface (aka Minerals). So, there could be a
scenario where there are two owners that own the surface (50%-50%), but
only ONE of the owners owns the BELOW surface (100%). There will have
to be two fields, SurfacePercent and MineralsPercent.

Currently, I have three tables tblOwner, tblProperty, and
lnktblOwnership. tblOwner has Name, Address, and SSN fields.
tblProperty has PropAddress, Township, Range, and AssessmentNo.
lnktblOwnership is a junction table. For sake of brevity, I have left
out the other 40+ remaining fields.

My question: Do I put the OwnerType field in the tblProperty (because
the type of ownership is unique to that particular address) or should it
be in the lnktblOwnership? And what about the Surface and
MineralPercent fields? Should those go in the lnktblOwnership?

FORM QUESTION:

I know how to create ONE form for ONE table. But I'd like to create a
form that will allow me to reference all 3 of the above tables as a
tabbed sub form. The 2 tabs are to be Owner Info, and Property Info.
I'd like the parent form to have fields of Name, Address, AssessmentNo
change as the user is clicking on the tabs of the sub forms to reflect
whatever position they are in the database. I just don't know how to
begin. Do I start with a form in design view? Or do I do one in the
Wizard then attach the TabControl and then SubForm/SubReport control?
I've tried both together and can't figure it out. If anyone can point
me to a "primer" for Sub forms I also gladly appreciate that.

Thanks in advance.

Phil.


Nov 13 '05 #3
If there are no properties which have multiple AssessmentNo.s, that could be
a one to many relationship, with the Property having a foreign key to the
Assessment table (which, I believe, had not been mentioned earlier). That
is, one Assessment, many Properties (though one fulfills this definition of
"many", as well as two or more)

Larry Linson
Microsoft Access MVP

"CAD Fiend" <pe******************@cox.net> wrote in message
news:42***************@cox.net...
Thanks for your reply. I forgot to mention one thing, though. It turns
out
after doing some checking, it IS possible to have ONE AssessmentNo with
several
Township and Range values. Would this mean that I should make a junction
table
to accomodate that relationship as well?

Larry Linson wrote:
By process of elimination, both the owner type and the surface/mineral
information have to go in the junction table. Neither applies to all
owners
of the property, so can't go in the property table; nor to all properties
of
the owner, so can't go in the owner table.

The junction table most certainly does not have to be limited to the
foreign
keys that link the many-to-many tables -- it is the logical place
appropriate for holding any information that is unique to that particular
linkage of the records in the many-to-many relationship.

Larry Linson
Microsoft Access MVP

"CAD Fiend" <pe******************@cox.net> wrote in message
news:42***************@cox.net...
> 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.
>
>
> TABLE STRUCTURE QUESTION:
>
> There are two parts to this preface.
> 1) There are many properties, that can be owned by many owners, one
> property owned by one owner, or one property owned by many owners, or
> many properties owned by one owner. So, for example, some of the
> property ownership descriptions are Separate Property (One Owner),
> Separate Property (Multiple Owners), Community Property (Husband and
> Wife), etc. So one of the fields that will be required for the table is
> going to be OwnerType.
>
> 2) In addition, this project involves percentage of ownership both on
> the SURFACE and BELOW the surface (aka Minerals). So, there could be
> a
> scenario where there are two owners that own the surface (50%-50%), but
> only ONE of the owners owns the BELOW surface (100%). There will have
> to be two fields, SurfacePercent and MineralsPercent.
>
> Currently, I have three tables tblOwner, tblProperty, and
> lnktblOwnership. tblOwner has Name, Address, and SSN fields.
> tblProperty has PropAddress, Township, Range, and AssessmentNo.
> lnktblOwnership is a junction table. For sake of brevity, I have left
> out the other 40+ remaining fields.
>
> My question: Do I put the OwnerType field in the tblProperty (because
> the type of ownership is unique to that particular address) or should
> it
> be in the lnktblOwnership? And what about the Surface and
> MineralPercent fields? Should those go in the lnktblOwnership?
>
> FORM QUESTION:
>
> I know how to create ONE form for ONE table. But I'd like to create a
> form that will allow me to reference all 3 of the above tables as a
> tabbed sub form. The 2 tabs are to be Owner Info, and Property Info.
> I'd like the parent form to have fields of Name, Address, AssessmentNo
> change as the user is clicking on the tabs of the sub forms to reflect
> whatever position they are in the database. I just don't know how to
> begin. Do I start with a form in design view? Or do I do one in the
> Wizard then attach the TabControl and then SubForm/SubReport control?
> I've tried both together and can't figure it out. If anyone can point
> me to a "primer" for Sub forms I also gladly appreciate that.
>
> Thanks in advance.
>
> Phil.
>

Nov 13 '05 #4

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

Similar topics

39
by: Scotter | last post by:
Okay I think my title line was worded misleadingly. So here goes again. I've got quite 20 identical MDB files running on an IIS5 server. From time to time I need to go into various tables and add...
4
by: maricel | last post by:
I have the following base table structure - DDL: CREATE TABLE "ADMINISTRATOR"."T1" ( "C1" INTEGER NOT NULL ) IN "TEST_TS" ; ALTER TABLE "ADMINISTRATOR"."T1" ADD PRIMARY KEY
1
by: Dalan | last post by:
I have tried both methods of using DSum and creating a Function to address summing some number columns, but to no avail. Since this has been a popular topic over the years, I'm sure I'll receive...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
7
by: Susan Bricker | last post by:
Greetings. As a relative newcomer to Access, I am having trouble deciding on how to design the form flow for updating and creating related records. I'm looking for a variety of suggestions so...
3
by: ChadDiesel | last post by:
Hello everyone. I need some advice on table structure for a new project I've been given. One of our customers sends us an Excel spreadsheet each week containing their order. Currently, someone...
0
by: Miguel Dias Moura | last post by:
Hello, I am working on an Asp.Net 2.0 / SQL 2005 web site. I am using profile to save the users info on the database. For example, I have the following structure: Public Structure Name...
3
by: Robert McEuen | last post by:
Using A2K3, Windows XP I'm handling a many-to-many relationship with a linking table structure as follows (irrelevant fields omitted): tblIssue PK_IssueID (autonumber, primary key) IssueName...
1
by: c0l0nelFlagg | last post by:
I need to display a main form with 48 identical subforms. 6 columns with 8 rows. I set up a separate query for each subform, identical in structure and underlying data except the criteria in...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.