B
Barbj
I have a database that records results of compliance
audits performed on tasks performed by field staff.
The main tables are:
Tbl Audit Details: [RefNo] - an autonumbering field, and
the primary key. [AuditDate], [Assessor] which is a lookup
field related to a table containing assessor info,
[SiteTeamLeader] - another lookup field, [Work Location] -
Text, [Task] - Text, [Audit Type] - lookup, [Comments] -
Memo.
Tbl Audit Results: [RefNo] - related to RefNo in Audit
Details Table and a primary key, [ElementID] - Related to
Element in Elements table and a primary key, [Compliance] -
A list box with Yes, No or Irrelevant, and [Improvement
Opp] - a check box.
Elements Table - [Element ID] - autonumber, primary key.
[Element] - the actual name of the element, [CategoryID] -
related to a category in the categories table, and
[Description] - a text field describing the element.
There are a number of small tables used as lookup fields
for categories, audit types, assessor names etc.
A form/subform is used for data entry of the audit results
with the fields from Audit Details table on the mainform
and a datasheet entry form containing the fields from
Audit Results. The forms are linked by the RefNo field as
a Master/Child.
When the Improvement Opportunity checkbox is ticked a new
form opens and information detailing the improvement
opportunity is entered. Information from the Audit
Details table are copied to the Improvement Opportunity
Form and the subform is from a table called Improvement
Opportunity Table.
This is where my problem lies.
The Improvement Opportunity table consists of the
following fields:
[ImprovementID] - an autonumbering field and the primary
key. [RefNo] - linked to the RefNo from Audit Details,
[Element] - linked to the Elements Table, and [Details] -
a memo field.
I now want to introduce a field that will hold information
regarding a reference valid to the opportunity - eg. A
standard, work procedure etc. So I have created a new
table called Reference Table.
The reference would differ depending on the element that
the improvement opportunity is related to, but I want the
reference chosen from a drop down list. All very easy so
far, however when the element is selected in the
improvement opportunity subform I want the reference drop
down list to be restricted to a choice of those references
only related to that particular element.
I have tried the information provided in the MSDN
knowledge base regarding the synchronisation of two combo
boxes and all worked well in the subform by itself,
however when opened and data entered through the mainform
a message box appeared asking for the information in the
parameters to be entered again, obviously this is no good
as the whole reason for using combo boxes is to prevent
error in data entry and also to cut down on key strokes.
Hopefully all this makes some sense. Can anyone assist as
I have spent days on this with no result.
Thanks
audits performed on tasks performed by field staff.
The main tables are:
Tbl Audit Details: [RefNo] - an autonumbering field, and
the primary key. [AuditDate], [Assessor] which is a lookup
field related to a table containing assessor info,
[SiteTeamLeader] - another lookup field, [Work Location] -
Text, [Task] - Text, [Audit Type] - lookup, [Comments] -
Memo.
Tbl Audit Results: [RefNo] - related to RefNo in Audit
Details Table and a primary key, [ElementID] - Related to
Element in Elements table and a primary key, [Compliance] -
A list box with Yes, No or Irrelevant, and [Improvement
Opp] - a check box.
Elements Table - [Element ID] - autonumber, primary key.
[Element] - the actual name of the element, [CategoryID] -
related to a category in the categories table, and
[Description] - a text field describing the element.
There are a number of small tables used as lookup fields
for categories, audit types, assessor names etc.
A form/subform is used for data entry of the audit results
with the fields from Audit Details table on the mainform
and a datasheet entry form containing the fields from
Audit Results. The forms are linked by the RefNo field as
a Master/Child.
When the Improvement Opportunity checkbox is ticked a new
form opens and information detailing the improvement
opportunity is entered. Information from the Audit
Details table are copied to the Improvement Opportunity
Form and the subform is from a table called Improvement
Opportunity Table.
This is where my problem lies.
The Improvement Opportunity table consists of the
following fields:
[ImprovementID] - an autonumbering field and the primary
key. [RefNo] - linked to the RefNo from Audit Details,
[Element] - linked to the Elements Table, and [Details] -
a memo field.
I now want to introduce a field that will hold information
regarding a reference valid to the opportunity - eg. A
standard, work procedure etc. So I have created a new
table called Reference Table.
The reference would differ depending on the element that
the improvement opportunity is related to, but I want the
reference chosen from a drop down list. All very easy so
far, however when the element is selected in the
improvement opportunity subform I want the reference drop
down list to be restricted to a choice of those references
only related to that particular element.
I have tried the information provided in the MSDN
knowledge base regarding the synchronisation of two combo
boxes and all worked well in the subform by itself,
however when opened and data entered through the mainform
a message box appeared asking for the information in the
parameters to be entered again, obviously this is no good
as the whole reason for using combo boxes is to prevent
error in data entry and also to cut down on key strokes.
Hopefully all this makes some sense. Can anyone assist as
I have spent days on this with no result.
Thanks