timhans
Programmer
- Jun 24, 2009
- 75
Hello, I am following a example in a book on how to ADO connect with on load event. The book I am using is for Access 2007(I have at home and do most of my work) and puts the following in a class module:
'Declare connection object variable
Dim cnn As New ADODB.Connection
'Declare Recordset object variable
Dim rs As New ADODB.Recordset
At work(where I will be using it) I use Access 2003, will the above cause an error in access 2003, an older book connects with out the New, just
Dim cnn As ADODB.Connection
Trying to write in a way that access 2003 is o.k with.
Thanks for any insight
'Declare connection object variable
Dim cnn As New ADODB.Connection
'Declare Recordset object variable
Dim rs As New ADODB.Recordset
At work(where I will be using it) I use Access 2003, will the above cause an error in access 2003, an older book connects with out the New, just
Dim cnn As ADODB.Connection
Trying to write in a way that access 2003 is o.k with.
Thanks for any insight