Yes.
There is a big difference between an object and a reference to that object.
10 different variables can reference the same object. But there would be
only one object in memory.
This is quite different from having each variable point to a different
object, and there being 10 actual objects in memory.
So, with New, you specify you want to create an instance of an object. If
you don't need a new instance, because you are using that variable to point
to an existing one, then you wouldn't want to use the new operator to create
one.
"Rob" <rw*****@comcast.net> wrote in message
news:P-******************************@comcast.com...
Anyone know why the word "New" is required ?
Dim cn As OleDbConnection
cn = New OleDbConnection