i'm using the follwing code to enter data from 1 form to a table:
Private Sub cmdConfirmQuote_Click()
On Error GoTo Err_cmdConfirmQuote_Click
DoCmd.RunSQL "INSERT INTO inventory_sales (clientId, quoteNumber) VALUES (" & Me.[clientId] & ", " & Me.[quoteNumber] & ")"
Exit_cmdConfirmQuote_Click:
Exit Sub
Err_cmdConfirmQuote_Click:
MsgBox Err.description
Resume Exit_cmdConfirmQuote_Click
End Sub
is there anyway of changing it to check for duplicate records that already exist ( basically records can only be entered form the form to the table once )
also is there anyway of changing the details or removing 'append' message box?
Private Sub cmdConfirmQuote_Click()
On Error GoTo Err_cmdConfirmQuote_Click
DoCmd.RunSQL "INSERT INTO inventory_sales (clientId, quoteNumber) VALUES (" & Me.[clientId] & ", " & Me.[quoteNumber] & ")"
Exit_cmdConfirmQuote_Click:
Exit Sub
Err_cmdConfirmQuote_Click:
MsgBox Err.description
Resume Exit_cmdConfirmQuote_Click
End Sub
is there anyway of changing it to check for duplicate records that already exist ( basically records can only be entered form the form to the table once )
also is there anyway of changing the details or removing 'append' message box?