Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / April 2005



Tip: Looking for answers? Try searching our database.

Call SP with in VB 6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dib - 26 Apr 2005 17:34 GMT
Hi,

I have this code that is returning run-time error 7004. The rowset is not
bookmarkable.

Cn.CursorLocation = adUseServer
  Set iWebOrdLookup.ActiveConnection = Cn

     iWebOrdLookup.CommandType = adCmdStoredProc
     iWebOrdLookup.CommandText = "dbo.GetWebOrders_sp"
         Set rsWebOrd = New ADODB.Recordset ' ?

       rsWebOrd.CursorType = adOpenKeyset ' I have tried this ?
       rsWebOrd.LockType = adLockOptimistic ' I have tried this ?
       Set rsWebOrd = iWebOrdLookup.Execute

   If rsWebOrd.BOF = True And rsWebOrd.EOF = True Then
      MsgBox "No records match the Request Number ", vbOKOnly, "Message"
      Exit Sub
   Else
       Set grdGetWebOrders.DataSource = rsWebOrd
   End If

can someone advice please, I have looked at the knowledge base, and could
not figure it out.

Thanks
Dib
Val Mazur (MVP) - 27 Apr 2005 01:17 GMT
It means that provider does not provide bookmarks functionality for this
type of cursor. try to open recordset on a client side.

Signature

Val Mazur
Microsoft MVP

http://xport.mvps.org

> Hi,
>
[quoted text clipped - 24 lines]
> Thanks
> Dib
Dib - 27 Apr 2005 14:25 GMT
Thanks
it worked

Dib

> It means that provider does not provide bookmarks functionality for this
> type of cursor. try to open recordset on a client side.
[quoted text clipped - 27 lines]
> > Thanks
> > Dib
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.