stephenk1973
Technical User
I have upgrade a an Access 97 db top 2003, one of the functions returns a 3420 error execute, falling over when closing the record set.
Code is quite basic
Dim db as database
Dim rst as DA0.recordset
set db=dbEngine(0)(0)
set rst = db.OpenRecordSet("select.....")
rst.movefirst
'Do some things
rst.close
set rst=nothing
db.close
set db=nothing
If the rst.close line is commented out it works? Why is this, sure i've got to close the the record set to reclaim the memory etc?
Explaination appreciated.
Thanks
Stephen
Code is quite basic
Dim db as database
Dim rst as DA0.recordset
set db=dbEngine(0)(0)
set rst = db.OpenRecordSet("select.....")
rst.movefirst
'Do some things
rst.close
set rst=nothing
db.close
set db=nothing
If the rst.close line is commented out it works? Why is this, sure i've got to close the the record set to reclaim the memory etc?
Explaination appreciated.
Thanks
Stephen