Hi All
I have 2 tables (TABLEA and TABLEB). One is populated with data and has a unique field TABLEA.QMref. The other will hold extra data but will also have the same unique field TABLEB.QMref.
I want to insert a new record in TABLEB from a form frmDATA with several checkboxes (and a QMref, frmDATA.QMref) unless a record with frmDATA.QMref already exists. If the record exists I want to update TABLEB rather than insert.
I know I could do this with several SQL queries but I was wonderng if there was a more efficient way to do this?
p.s. I can't add the fields into TABLEA as this is a linked table I canot amend.
Any ideas would be much appreciated, thanks in advance
I have 2 tables (TABLEA and TABLEB). One is populated with data and has a unique field TABLEA.QMref. The other will hold extra data but will also have the same unique field TABLEB.QMref.
I want to insert a new record in TABLEB from a form frmDATA with several checkboxes (and a QMref, frmDATA.QMref) unless a record with frmDATA.QMref already exists. If the record exists I want to update TABLEB rather than insert.
I know I could do this with several SQL queries but I was wonderng if there was a more efficient way to do this?
p.s. I can't add the fields into TABLEA as this is a linked table I canot amend.
Any ideas would be much appreciated, thanks in advance