Forum Discussion

zunaira's avatar
zunaira
Occasional Contributor
10 years ago

object required Exception while creating DB connection

dear members,   i have Object required exception when tried to get RecSet object    Set RecSet = AConnection.Execute_("SELECT * from Program") Log.Message(RecSet.RecordCount) Set getProgramCoun...
  • TanyaYatskovska's avatar
    10 years ago

    Hi Zunaira,

     

    There is no need to use SET in this line:

    SET getProgramCount=RecSet.RecordCount

     

    The RecordCount property doesn’t return a value (not an object). Here is the modified line:

    getProgramCount=RecSet.RecordCount