Access VBA: Can you open same record set twice? -


i"m opening record set so:

dim rst dao.recordset set rst = db.openrecordset(cursku) 

can open same recordset twice different variables:

dim rst dao.recordset set rst = db.openrecordset(cursku)  dim rst2 dao.recordset set rst2 = db.openrecordset(cursku) 

is allowed? cause problems if try iterate through each set @ different times using rst.movenext, etc?

i don't know if i've ever done yes work. may run page locking problems if updating records in both recordsets. 4 kb access page can and, does, contain multiple records. if adding records that's less of issue access 2000 , newer, jet 4.0, appears add new records in individual pages.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -