I've been looking at Pat Hartman's sample db and am slowly understanding the many-many referencing with subforms on main forms being only do-able via queries.
Please can I ask a question that might appear slightly dumb, but please can I ask a question regarding my db? I've been doing a lot of re-design as mine wasn't working due to normalisation issues etc and a lot of my tables are now in 4 and 5NF because of many-many relationships.
With my contact information, I have the following:
tblContact
idsContactID (PK)
chrContactType (lookup to tblContactType)
chrContactFName
chrContactSName
chrContactCompany (lookup to tblcompany)
chrContactAddress1
chrContactAddress2
chrContactAddress3
chrContactTown
chrContactCounty
chrContactPCode
chrContactCountry
memContactComments
blnContactMailList
blnContactStopList
tblContactTelNoLink
lngzContactID (pk) - lookup to tblContact
lngzTelNoID (pk) - lookup to tblTelNo
tblTelNo
idsTelNoID (pk)
numTelNo
lngzTelNoType (lookup to tblTelNoType)
tblTelNoType
idsTelNoTypeID (pk)
chrTelNoType
So when doing the contact form, I have a subform controlled by a query and this is placed into the main contact form so that the numbers change when the contact changes.
When it comes to data entry, however, i notice that in Pat's version, some field controls are disabled.
If I enter a new contact into the db and I want to add telephone number details, would I just need to create a button to open a form which directly controls the tblTelNo table and add the info there, then go back to the contact form and select it from the combo box? Or would I open a form based on the tblContactTelNoLink table, so that it links the telephone number to the particular contact?
It's this bit that I don't get about many-many relationships.
I look forward to hearing your comments. I hope the above made some form of sense.
Thanks in advance,
Simon
Please can I ask a question that might appear slightly dumb, but please can I ask a question regarding my db? I've been doing a lot of re-design as mine wasn't working due to normalisation issues etc and a lot of my tables are now in 4 and 5NF because of many-many relationships.
With my contact information, I have the following:
tblContact
idsContactID (PK)
chrContactType (lookup to tblContactType)
chrContactFName
chrContactSName
chrContactCompany (lookup to tblcompany)
chrContactAddress1
chrContactAddress2
chrContactAddress3
chrContactTown
chrContactCounty
chrContactPCode
chrContactCountry
memContactComments
blnContactMailList
blnContactStopList
tblContactTelNoLink
lngzContactID (pk) - lookup to tblContact
lngzTelNoID (pk) - lookup to tblTelNo
tblTelNo
idsTelNoID (pk)
numTelNo
lngzTelNoType (lookup to tblTelNoType)
tblTelNoType
idsTelNoTypeID (pk)
chrTelNoType
So when doing the contact form, I have a subform controlled by a query and this is placed into the main contact form so that the numbers change when the contact changes.
When it comes to data entry, however, i notice that in Pat's version, some field controls are disabled.
If I enter a new contact into the db and I want to add telephone number details, would I just need to create a button to open a form which directly controls the tblTelNo table and add the info there, then go back to the contact form and select it from the combo box? Or would I open a form based on the tblContactTelNoLink table, so that it links the telephone number to the particular contact?
It's this bit that I don't get about many-many relationships.
I look forward to hearing your comments. I hope the above made some form of sense.
Thanks in advance,
Simon