Wrox Home  
Search P2P Archive for: Go

  Return to Index  

activex_data_objects thread: Stand-Alone Recordset and Binding to MSFlexGrid


Message #1 by "Tim Medin" <tmedin@t...> on Mon, 27 Aug 2001 19:18:31
I have created a Stand-Alone recordset using the following code:

    m_rsFiles.Fields.Append "ID", adBigInt, , adFldKeyColumn

    m_rsFiles.Fields.Append "Name", adVarChar, 100, adFldUpdatable

    m_rsFiles.Fields.Append "Path", adVarChar, 255, adFldUpdatable

    m_rsFiles.Open , , adOpenStatic, adLockOptimistic



I am recieveing an error when I try to bind this to an MSFlexGrid with the 

following code:

   Set Me.MSFlexGrid.DataSource = m_rsFiles



The Error I am recieving is the following:

   Error Number 91, Object variable or With block variable not set



The recordset is open and does contain data.  If anyone can tell me how to 

resolve the problem it would be greatly appreciated.  Thanks.

  Return to Index