VBscript and ADO - 3704 Operation is not allowed when the object is closed

后端 未结 3 868
误落风尘
误落风尘 2021-01-13 19:58

This function inserts a row into a SQL database and needs to return the identity number created:

Function WriteDatabase(backupTypeID, numImages, folderSize,          


        
3条回答
  •  囚心锁ツ
    2021-01-13 20:47

    I do the same thing (very similar anyway). I believe that there are two sets of results coming back, one for the INSERT and then another for the SELECT. Try calling objRecordSet.NextRecordset().

提交回复
热议问题