Hello,
I am trying to delete specific records with no luck. When I run a ?strSQL here are the results:
DELETE * FROM RPT_Data rd WHERE rd.uci ='BIP' AND rd.rptpd = 375;
There are currently 12 records that fit the criteria.
If I run a regular delete query such as
DELETE RPT_Data.uci, RPT_Data.rptpd
FROM RPT_Data
WHERE (((RPT_Data.uci)="BIP") AND ((RPT_Data.rptpd)=375));
It works with no problem.
Any help is appreciated.
Tom
I am trying to delete specific records with no luck. When I run a ?strSQL here are the results:
DELETE * FROM RPT_Data rd WHERE rd.uci ='BIP' AND rd.rptpd = 375;
There are currently 12 records that fit the criteria.
If I run a regular delete query such as
DELETE RPT_Data.uci, RPT_Data.rptpd
FROM RPT_Data
WHERE (((RPT_Data.uci)="BIP") AND ((RPT_Data.rptpd)=375));
It works with no problem.
Any help is appreciated.
Tom
Code:
strSQL = "DELETE * " & _
"FROM RPT_Data rd " & _
"WHERE rd.uci ='" & strUCI & "' AND rd.rptpd = " & intPd & ";"
Set rst = CurrentDb.OpenRecordset(strSQL, dbOpenSnapshot)
With rst
.MoveLast
.MoveFirst
End With