The error 2046: GoToRecord' isn't available now (1 Viewer)

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:23
Joined
May 7, 2009
Messages
19,247
on bound forms, Recordset property is the recordset from the bound table or query of that form.

using:
Code:
set db=currentdb
set rs = db.openrecordset("select …")
if you are "selecting" from same Recordsource(table or query) of your form, you are actually fetching fresh records (new, updated) from that table/query. therefore this recordset might not be of same record count as what you have.

while using:
Code:
set rs = me.recordset
is a safe method, because you are using the current record that you have in your Form.
there is also a RecordsetClone property which is same copy of Recordset.
moving through the clone recordset (.movenext, .moveprevious) will not move the record pointer
in your form. on the contrary, moving through records in Recordset will move also the cursor/record pointer
of your form.

you can google "ms access recordset recordsetclone" further.
 

Babycat

Member
Local time
Today, 23:23
Joined
Mar 31, 2020
Messages
275
Thank Arnelgp.

This is useful to me to learn.
I have read anout recordsetclone, will play with it

Thanks, Xuan
 

Users who are viewing this thread

Top Bottom