Good morning, in connecting with ADO is there a preferred method
a) Dim cnn As ADODB.Connection
Set cnn = CurrentProject.Connection
b) Dim cnn As ADODB.Connection
With cnn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Open "MyPath\MyDatabaseName.mdb"
or a third method ?
any comments or insights is appreciated, thanks
a) Dim cnn As ADODB.Connection
Set cnn = CurrentProject.Connection
b) Dim cnn As ADODB.Connection
With cnn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Open "MyPath\MyDatabaseName.mdb"
or a third method ?
any comments or insights is appreciated, thanks