G
Guest
Hello all,
I am trying to use the outstanding info of this link.
http://msdn.microsoft.com/newsgroup...cedev-access&lang=en&cr=US&sloc=en-us&m=1&p=1
The post says to set references to Excel, so I added Microsoft Excel 11.0
Object Library
I am using Access 2003, Win XP. With references
Visual Basic for Applications
Microsoft Access 11.0 Object Library
Microsoft DAO 3.6 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft Calendar Control 11.0
Microsoft Excel 11.0 Object Library
I am erroring out at the Set rs line in the code below. Is this a reference
problem or word wrap problem?
sSQL = "SELECT DataSeries1, DataSeries2 " _
& "FROM Table1 " _
& "ORDER BY ID;"
'Debug.Print sSQL
Set rs = db.OpenRecordset(sSQL, dbOpenSnapshot) With rs
...MoveLast 'force error 3021 if no records
...MoveFirst
I am somewhat DAO challenged, so any assistance you can provide, I would
appreciate it.
I am trying to use the outstanding info of this link.
http://msdn.microsoft.com/newsgroup...cedev-access&lang=en&cr=US&sloc=en-us&m=1&p=1
The post says to set references to Excel, so I added Microsoft Excel 11.0
Object Library
I am using Access 2003, Win XP. With references
Visual Basic for Applications
Microsoft Access 11.0 Object Library
Microsoft DAO 3.6 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft Calendar Control 11.0
Microsoft Excel 11.0 Object Library
I am erroring out at the Set rs line in the code below. Is this a reference
problem or word wrap problem?
sSQL = "SELECT DataSeries1, DataSeries2 " _
& "FROM Table1 " _
& "ORDER BY ID;"
'Debug.Print sSQL
Set rs = db.OpenRecordset(sSQL, dbOpenSnapshot) With rs
...MoveLast 'force error 3021 if no records
...MoveFirst
I am somewhat DAO challenged, so any assistance you can provide, I would
appreciate it.