View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Morris[_2_] Morris[_2_] is offline
external usenet poster
 
Posts: 25
Default Method or Data Member Not Found error, after connecting to Microsoft SQL Server

Dim rsData As Recordset

This is where I get the error - on rsData.Open
But all the samples and manuals I've found use this method, so where
lies the mistake? I'm using Excel 2003
--------------------------------



I've found the solution:
instead of \Dim rsData As Recordsdet\
I have to decla \Dim rsData As ADODB.Recordsdet\

And now I can use the 'Open' method freely :)

Thanks for your feedback