gbshahaq
Sham
- Local time
- Today, 21:57
- Joined
- Apr 21, 2004
- Messages
- 52
i have some code to empty a table before importing new data to it.
how do I conditionally delete, depending on whether the table is already empty?
i looked at using "if
.recordcount > 0 then" but this did not do anything for me....
pls help!
Sham
Code:
DoCmd.OpenTable "Temp_Targets", acViewNormal, acEdit
DoCmd.RunCommand acCmdSelectAllRecords
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.Close acTable, "Temp_Targets"
how do I conditionally delete, depending on whether the table is already empty?
i looked at using "if
pls help!
Sham