Im guessing right now as i am reading a book while we talked. I call my this first
vb Code:
  1. Public Sub openConnection()
  2.   Set oConn = New ADODB.Connection
  3.  
  4.   With oConn
  5.     .Provider = "SQLOLEDB"
  6.     .CursorLocation = adUseClient
  7.     .Properties("Data Source").Value = ".\SQLEXPRESS"
  8.     .Properties("Initial Catalog").Value = "MasterFile"
  9.     .Properties("Integrated Security").Value = "SSPI"
  10.     .CursorLocation = adUseClient
  11. '    .Mode = adModeReadWrite
  12.     .Open
  13.   End With
  14. End Sub
then i got to have something like this cmd.Commandtype=adCMDStoredProc