I'm just curious, I read books that show code written with the 'New' keyword after the declaration statement, and was wondering what's the difference between doing that and simply inserting the 'New' keyword beside the object on the Dim statement?
New object set after Dim statement:
New object set on Dim statement:
Anyone?
New object set after Dim statement:
Code:
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
New object set on Dim statement:
Code:
Dim rst As New ADODB.Recordset
Anyone?