jaaret
Instructor
- Jun 19, 2002
- 171
I've written a Delete Query that deletes records from a linked table named Neighbor where the string field DocDate has zeroes for days, such as "05/00/1999"
The Delete Query works but when I try to use the SQL code in a RunSQL statement (below) the forward slash characters cause an error. What is the work around for this?
'Delete records from the linked Neighbor table with
'days denoted with zeroes
DoCmd.RunSQL "DELETE NEIGHBOR.DOCDATE FROM NEIGHBOR _
WHERE (((NEIGHBOR.DOCDATE) Like "*/00/*"));"
Thanks!
Darrell
The Delete Query works but when I try to use the SQL code in a RunSQL statement (below) the forward slash characters cause an error. What is the work around for this?
'Delete records from the linked Neighbor table with
'days denoted with zeroes
DoCmd.RunSQL "DELETE NEIGHBOR.DOCDATE FROM NEIGHBOR _
WHERE (((NEIGHBOR.DOCDATE) Like "*/00/*"));"
Thanks!
Darrell