P
Paul James
I'd like to create an update query consisting of two tables that have a
one-to-many relationship with each other. Both tables contain a checkbox
field with a Yes/No data type. I'd like my upate query to set the checkbox
field to "Yes" for a record in the "one" table if and only if the checkbox
field in the "many" table is set to "Yes" for all records corresponding to
that record in the "one" table.
More specifically, assume the two fields are named tblAgent and
tblAgentContact. One Agent can have many Contacts:
tblAgent ---> tblAgentContact
The table tblAgent has a field named fp_agent
The table tblAgentContact has a field named fp_contact
Both of these fields have Yes/No data types. I'd like the update query to
set the value of the fp_agent field to "Yes" if and only if the value of the
fp_contact field in tblAgentContact is set to yes for all records
corresponding to that particular record in tblAgent.
Can anyone tell me what criteria I can use in the update query to accomplish
this?
Thanks in advance,
Paul
that sets a Yes/No field to "Yes" in a table on the "one" side of a
one-to-many relationship, when
one-to-many relationship with each other. Both tables contain a checkbox
field with a Yes/No data type. I'd like my upate query to set the checkbox
field to "Yes" for a record in the "one" table if and only if the checkbox
field in the "many" table is set to "Yes" for all records corresponding to
that record in the "one" table.
More specifically, assume the two fields are named tblAgent and
tblAgentContact. One Agent can have many Contacts:
tblAgent ---> tblAgentContact
The table tblAgent has a field named fp_agent
The table tblAgentContact has a field named fp_contact
Both of these fields have Yes/No data types. I'd like the update query to
set the value of the fp_agent field to "Yes" if and only if the value of the
fp_contact field in tblAgentContact is set to yes for all records
corresponding to that particular record in tblAgent.
Can anyone tell me what criteria I can use in the update query to accomplish
this?
Thanks in advance,
Paul
that sets a Yes/No field to "Yes" in a table on the "one" side of a
one-to-many relationship, when