G
Guest
I can't edit certain records in query fields.
I have, for example, a table tblClients with a lookup field to a table
tblClientType (which has just one field, ClientType). I have no problem
choosing a different ClientType value for a record in datasheet view of the
tblClients table.
I also have a qryClients select query based on both tblClients and
tblClientType in which the query field for ClientType takes its value
directly from tblClientType. I created this query as a basis for a
corresponding frmClients form, following what I thought was good practice in
avoiding having a form control that wld otherwise be based directly on a
table lookup field (eg. ClientType). But if I try to change a value for
ClientType either using the drop-down list in the datasheet column of the
query or in the corresponding combo box on the form, I get an error message
about not creating duplicate values in the index, primary key or
relationship, etc.
I'd be very glad if someone cld help me figure out what's I'm doing wrong.
I have, for example, a table tblClients with a lookup field to a table
tblClientType (which has just one field, ClientType). I have no problem
choosing a different ClientType value for a record in datasheet view of the
tblClients table.
I also have a qryClients select query based on both tblClients and
tblClientType in which the query field for ClientType takes its value
directly from tblClientType. I created this query as a basis for a
corresponding frmClients form, following what I thought was good practice in
avoiding having a form control that wld otherwise be based directly on a
table lookup field (eg. ClientType). But if I try to change a value for
ClientType either using the drop-down list in the datasheet column of the
query or in the corresponding combo box on the form, I get an error message
about not creating duplicate values in the index, primary key or
relationship, etc.
I'd be very glad if someone cld help me figure out what's I'm doing wrong.