I have the following and it works perfectly and lightning fast - so no complaints there
But I can't help but to wonder if there is a 'cleaner' way to write this - Perhaps a way to combine the DELETE Queries into one StrSQL
Code:
Dim conn As ADODB.Connection
Set conn = New ADODB.Connection
conn.ConnectionString = strConnection
conn.Open
StrSQL1 = "DELETE FROM dbo.ThisTable"
StrSQL2 = "DELETE FROM dbo.ThatTable"
StrSQL3 = "DELETE FROM dbo.HisTable"
StrSQL4 = "DELETE FROM dbo.HerTable"
With conn
.Execute StrSQL1
.Execute StrSQL2
.Execute StrSQL3
.Execute StrSQL4
End With
conn.Close
Set conn = Nothing
As Always - Thank You...