DoCmd.SetWarnings False
countB = DCount("[Customer]", "Materials")
' IF the counts are off by one the insert was successful.
DoCmd.RunSQL "INSERT INTO Materials (Customer, Job, Purchasedate, Etc, Etc) "
countA = DCount("[Customer]", "Materials")
If countA > countB Then rstMaterialsHold.Delete
rstMaterialsHold.MoveNext ' Bring up next record on [CODE]