Hi all
Thanks to some help from here I have
One last small question: Is there a way to test NewLabelNumber and NewItemCode to make sure there isn't another vaule of the same name already in the table for them since they are both primary keys?
Thank you.
Thanks to some help from here I have
Code:
Dim SQLstrg As String
strSQL = "Insert Into tbllabeltable ([pltLabel#], [snItemNumber#], [pltProduct FamilyOne], " & _
"[pltProduct FamilyTwo], [pltProduct FamilyThree], [pltBarCodeInfo], " & _
" [pltProduct DescriptionOne], [pltProduct DescriptionTwo]) " & _
"Values ('" & NewLabelNumber & "', '" & newItemCode & "', '" & copya & "', " & _
"'" & copyb & "', '" & copyc & "', '" & copyd & "', '" & copye & "', '" & copyf & "')"
CurrentDb.Execute (strSQL)
One last small question: Is there a way to test NewLabelNumber and NewItemCode to make sure there isn't another vaule of the same name already in the table for them since they are both primary keys?
Thank you.