D
Darren Kozey via AccessMonster.com
On a main "Contacts" form is a tabbed control to allow me to separate the
elements of data that need to be entered and stored. One tab is an
"Estimate" tab, and on it is a subform "sfrmEstimate" in order to allow the
use of another tabbed form to again separate out the different elements
that make up the estimate. It doesn't seem possible to drop a tab control
on top of another tab control, so the subform was my solution.
However, because this subform does not have an underlying table of its own
(the subforms on it do), I am not sure that the SELECT query I used (or
copied) for its control source is the correct one, because when I go to
create a new record from the main form, then go into the "Estimate" tab to
enter data, the primary key does not get written to the tables that make up
the estimate information.
The qry for "sfrmEstimate" is: "SELECT DISTINCTROW Contacts.* FROM Contacts
WHERE ((Contacts.ContactID=forms!Contacts!ContactID)); "
"Contacts" is the main table with "ContactID" being the PK. The tables
under the subforms on "sfrmEstimate" also contain a "ContactID" field, and
this is how they are related to the main table via one-to-many
relationship, one being on the "Contacts" side.
Can anyone help in determining how I can fix this problem?
Any help is welcome and appreciated.
PS. Will post more data/.gifs if requested.
Thanks,
Darren
elements of data that need to be entered and stored. One tab is an
"Estimate" tab, and on it is a subform "sfrmEstimate" in order to allow the
use of another tabbed form to again separate out the different elements
that make up the estimate. It doesn't seem possible to drop a tab control
on top of another tab control, so the subform was my solution.
However, because this subform does not have an underlying table of its own
(the subforms on it do), I am not sure that the SELECT query I used (or
copied) for its control source is the correct one, because when I go to
create a new record from the main form, then go into the "Estimate" tab to
enter data, the primary key does not get written to the tables that make up
the estimate information.
The qry for "sfrmEstimate" is: "SELECT DISTINCTROW Contacts.* FROM Contacts
WHERE ((Contacts.ContactID=forms!Contacts!ContactID)); "
"Contacts" is the main table with "ContactID" being the PK. The tables
under the subforms on "sfrmEstimate" also contain a "ContactID" field, and
this is how they are related to the main table via one-to-many
relationship, one being on the "Contacts" side.
Can anyone help in determining how I can fix this problem?
Any help is welcome and appreciated.
PS. Will post more data/.gifs if requested.
Thanks,
Darren