B
Bob Quintal
Dim countB4 as longHow can I count the number of records deleted using sql script?
Here is my code:
Dim strSQL As String
strSQL = "Delete * FROM [RMA DETAIL] "
strSQL = strSQL & " WHERE [DETAILID]=" &
Me![lstDetail].Column(14) CurrentDb().Execute strSQL
I tried this but it does not work:
MsgBox "count = " & strSQL.RecordCount
Thanks in advance for all your help!
Dim strSQL As String
strSQL = "Delete * FROM [RMA DETAIL] "
strSQL = strSQL & " WHERE [DETAILID]=" & Me![lstDetail].Column(14)
CountB4 = Dcount("*",[RMA_DETAIL])
CurrentDb().Execute strSQL
debug.print Dcount("*",[RMA_DETAIL]) - CountB4