iamchemist
Programmer
OK, so I have abandon my previous attempts to modify an existing database and have bought the book, Absolute Beginner's Guide to VBA", by Paul McFedries to start from scratch. For the Access VBA part of this book it starts out telling me how to program via an ADO Object. However, I can not get the simplest code to run:
Sub RecordsetOpen()
Dim rs As Recordset
rs.Open "Employees", "Northwind"
rs.Close
Set rs = Nothing
When I try to run this code from within the Northwind example database (reference has been set to allow ADO), it chokes at the statement:
rs.Open "Employees", "Northwind"
Would someone please tell me how to get this very, very simple code snipet to run, or what I am doing wrong in trying to get it to run?
Thanks,
Ron
Sub RecordsetOpen()
Dim rs As Recordset
rs.Open "Employees", "Northwind"
rs.Close
Set rs = Nothing
When I try to run this code from within the Northwind example database (reference has been set to allow ADO), it chokes at the statement:
rs.Open "Employees", "Northwind"
Would someone please tell me how to get this very, very simple code snipet to run, or what I am doing wrong in trying to get it to run?
Thanks,
Ron