Help Please !!!
I am trying to delete a record based on the invoice number selected from a
combo box. The code below finds the correct record but only deletes the
invoice number field rather then the whole record
hope someone can help
thanks in advance....
strinvnum = Me.cboinvnumber
Set rst2 = New ADODB.Recordset
rst2.Open "inputalloc", cnn, adOpenKeyset, adLockOptimistic,
adCmdTableDirect
rst2.Find "[InvoiceNumber]='" & strinvnum & "'", 0, adSearchForward
rst2.Delete
rst2.Update
rst2.Close
'
I am trying to delete a record based on the invoice number selected from a
combo box. The code below finds the correct record but only deletes the
invoice number field rather then the whole record
hope someone can help
thanks in advance....
strinvnum = Me.cboinvnumber
Set rst2 = New ADODB.Recordset
rst2.Open "inputalloc", cnn, adOpenKeyset, adLockOptimistic,
adCmdTableDirect
rst2.Find "[InvoiceNumber]='" & strinvnum & "'", 0, adSearchForward
rst2.Delete
rst2.Update
rst2.Close
'