Hi all, currently I have the following INSERT query...
The primary keys are [Employee ID] and [ABN] together. That isn't a problem for duplicates when they're together, but every [ABN] also needs to be kept unique regardless of whether there's an [Employee ID] tied to it or not.
I can't think of a way to "check" tblEmployeeBusiness for already existing [ABN]'s before executing this query...help?
Code:
strSQL = " INSERT INTO tblEmployeeBusiness ( [Employee ID], ABN, [Business Name] ) " & _
" VALUES ( Forms!frmEditEmployee!cboSelectEmployee, Forms!frmEditEmployee!txtABN, Forms!frmEditEmployee!txtBusiness ) ; "
The primary keys are [Employee ID] and [ABN] together. That isn't a problem for duplicates when they're together, but every [ABN] also needs to be kept unique regardless of whether there's an [Employee ID] tied to it or not.
I can't think of a way to "check" tblEmployeeBusiness for already existing [ABN]'s before executing this query...help?