D
David Habercom
I need to delete a record from a table, and I can't see why this SQL
statement doesn't see the record:
strSQL = "DELETE * FROM DonorTbl WHERE DonANDI = " & Qt(Me.NewANDI) & ""
DoCmd.RunSQL strSQL
Private Function Qt(s)
'Simplifies use of quotes in SQL statement.
Qt = Chr(34) & s & Chr(34)
End Function
The strSQL line translates to:
DELETE * FROM DonorTbl WHERE DonANDI = "Y33333"
and I know the record exists, but the Access warning tells me I am about to
delete 0 records!
What am I missing?
Thanks in advance.
statement doesn't see the record:
strSQL = "DELETE * FROM DonorTbl WHERE DonANDI = " & Qt(Me.NewANDI) & ""
DoCmd.RunSQL strSQL
Private Function Qt(s)
'Simplifies use of quotes in SQL statement.
Qt = Chr(34) & s & Chr(34)
End Function
The strSQL line translates to:
DELETE * FROM DonorTbl WHERE DonANDI = "Y33333"
and I know the record exists, but the Access warning tells me I am about to
delete 0 records!
What am I missing?
Thanks in advance.