Hi!
I have a tiny question which I am insecure about. I want to replace the following code: (the code makes a certain table empty)
by the following code:
So, in other words, can I safely leave out the SetWarnings bit in the newer code below??
Cheers,
Willem
I have a tiny question which I am insecure about. I want to replace the following code: (the code makes a certain table empty)
Code:
DoCmd.SetWarnings False
strSQL = "DELETE FROM TestTable"
DoCmd.RunSQL (strSQL)
DoCmd.SetWarnings True
by the following code:
Code:
strSQL = "DELETE FROM TestTable"
CurrentDb.Execute (strSQL)
So, in other words, can I safely leave out the SetWarnings bit in the newer code below??
Cheers,
Willem