Zydeceltico
Registered User.
- Local time
- Today, 00:56
- Joined
- Dec 5, 2017
- Messages
- 843
Hi All,
I have three tables: tblJob, tblContacts, and junction table tblJobContacts.
tblJob has multiple fields including the PK JobID (autonumber). tblJobContacts has typical fields for contact info and PK ContactID (autonumber).
tblJobContacts links to JobID on tblJob via JobID_FK. tblJobContacts links to ContactID on tblContacts via ContactID_FK.
tblJobContacts has 4 fields: JobContactsID (PK), JobID_FK, ContactID_FK, and Role (which is linked to lookup table tblRole).
One job will have two Contacts always. A Customer Contact and a Jobsite Contact. They will typically be different (95% of the time) but conceivably could be the same.
Also, different jobs could have repeated contacts - in other words a single contact may be associated with many jobs.
Desired workflow is to open a form to add a new Job knowing that I will be adding two contacts associated with that job (one of which will be immediately - the second at a later date). My challenge is not knowing how to create a data entry form based on qryJobContacts or frmJobContactDS that allows for more than a single entry into tblJobContacts remembering that a single Job will have more than one record in tblJobContacts. frmJobContactDS shows how that should be represented. It also shows that even though there will be two Contacts per job, they don't both always get entered at the same time. In fact they rarely do. NOTE: JobID is not stored in tblContacts. tblContacts acts solely as global address book of ALL contacts regardless of role related to any given Job.
However, I would like my data entry form to allow for two contact entries: One is always the customer and the second is always the jobsite contact. Perhaps, this makes the lookup from tblRole inconsequential and I should instead add fields Customer and JobsiteContact to tblJobContacts.
I need to "AddNewJob" and have that form prompt me to enter multiple new entries to tblContacts.
I just don't have any idea what my options are and how to proceed.
I would later like to open a form or report that takes JobNumber (directly related to JobID in tblJob) as search criteria and returns BOTH contacts (Customer and JobsiteContact) info.
I hope I haven't muddles my question too much.
As always - thank you very much in advance for any and all insight!
Tim
I have three tables: tblJob, tblContacts, and junction table tblJobContacts.
tblJob has multiple fields including the PK JobID (autonumber). tblJobContacts has typical fields for contact info and PK ContactID (autonumber).
tblJobContacts links to JobID on tblJob via JobID_FK. tblJobContacts links to ContactID on tblContacts via ContactID_FK.
tblJobContacts has 4 fields: JobContactsID (PK), JobID_FK, ContactID_FK, and Role (which is linked to lookup table tblRole).
One job will have two Contacts always. A Customer Contact and a Jobsite Contact. They will typically be different (95% of the time) but conceivably could be the same.
Also, different jobs could have repeated contacts - in other words a single contact may be associated with many jobs.
Desired workflow is to open a form to add a new Job knowing that I will be adding two contacts associated with that job (one of which will be immediately - the second at a later date). My challenge is not knowing how to create a data entry form based on qryJobContacts or frmJobContactDS that allows for more than a single entry into tblJobContacts remembering that a single Job will have more than one record in tblJobContacts. frmJobContactDS shows how that should be represented. It also shows that even though there will be two Contacts per job, they don't both always get entered at the same time. In fact they rarely do. NOTE: JobID is not stored in tblContacts. tblContacts acts solely as global address book of ALL contacts regardless of role related to any given Job.
However, I would like my data entry form to allow for two contact entries: One is always the customer and the second is always the jobsite contact. Perhaps, this makes the lookup from tblRole inconsequential and I should instead add fields Customer and JobsiteContact to tblJobContacts.
I need to "AddNewJob" and have that form prompt me to enter multiple new entries to tblContacts.
I just don't have any idea what my options are and how to proceed.
I would later like to open a form or report that takes JobNumber (directly related to JobID in tblJob) as search criteria and returns BOTH contacts (Customer and JobsiteContact) info.
I hope I haven't muddles my question too much.
As always - thank you very much in advance for any and all insight!
Tim