AshikHusein
Registered User.
- Local time
- Today, 11:13
- Joined
- Feb 7, 2003
- Messages
- 147
Could anyone tell m what is wrong with this VBA code snippet:
Dim rec as DAO.recordset
set db = CurrentDB
strSQL = "some SQL"
set rec =db.openrecordset(strSQL,dbOpendynaset)
rec.Bookmark = Me.Bookmark (where "Me" is a form)
I know it all works with the recordsetclone object. The problem is that with the recordsetclone object there is a lot of data being transferred across the network. What I am trying to do is to open a recordset having a fewer records and then co-ordinating the form's bookmark and the recordset's bookmark. In DAO, "bookmark" appears as a method for a recordset and so I thought it would work. Although I do not get any error messages, it does not appear to work since the form does not go to to the record specified by the SQL statement, but to a different record. Please provide me with an understanding of what I may be doing wrong here for whoever understands this. Thanks.
Dim rec as DAO.recordset
set db = CurrentDB
strSQL = "some SQL"
set rec =db.openrecordset(strSQL,dbOpendynaset)
rec.Bookmark = Me.Bookmark (where "Me" is a form)
I know it all works with the recordsetclone object. The problem is that with the recordsetclone object there is a lot of data being transferred across the network. What I am trying to do is to open a recordset having a fewer records and then co-ordinating the form's bookmark and the recordset's bookmark. In DAO, "bookmark" appears as a method for a recordset and so I thought it would work. Although I do not get any error messages, it does not appear to work since the form does not go to to the record specified by the SQL statement, but to a different record. Please provide me with an understanding of what I may be doing wrong here for whoever understands this. Thanks.