Using the DoCmd property you can delete all rows in an Access Database table using Access VBA and SQL
Sub DeleteRows()
'Deletes all rows from tblName in an Access Database
DoCmd.RunSQL "DELETE tblName.* FROM tblName;"
End Sub
Subscribe to:
Post Comments (Atom)
1 comment:
How about just one row, where the ContactID = Forms!frmMyForm!ContactID
Post a Comment