G
Guest
I have a filtering system in place to locate a specfic record in a table, but
for some odd reason it refuses to delete programically.
The code is as follows:
Criteria = "EmpID = " & EmpID & " and CourseID = " & CorID & " and SessionID
= " & SessID & " and CertificationDate = " & Cordate
With DoCmd
.SetWarnings False
.RunSQL "Delete * From EmpAwareness Where " & Criteria
.SetWarnings True
End With
This code is placed inside a sub in a module. What am I doing wrong?
for some odd reason it refuses to delete programically.
The code is as follows:
Criteria = "EmpID = " & EmpID & " and CourseID = " & CorID & " and SessionID
= " & SessID & " and CertificationDate = " & Cordate
With DoCmd
.SetWarnings False
.RunSQL "Delete * From EmpAwareness Where " & Criteria
.SetWarnings True
End With
This code is placed inside a sub in a module. What am I doing wrong?