Hey all, I'm trying to open a recordset of a subform.
I've tried:
Set rst = Forms![frmQuickEnter].Recordset
Set rst = Forms![frmMain].Form![frmQuickEnter].Recordset
Set rst = Forms![frmMain].Form![frmQuickEnter].RecordsetClone
All throw errors. Can I open a recordset of a subform, or do I need to do it based on the underlying query.
If I have to do it based on the underlying query, is there code I that would let me add a "Where" statement to that query if I use "Set qd = dbs.QueryDefs!qryQuickEnter"? It's linked to the main form automatically by the primary key, so I don't have any parameters in the query.
Thanks!
I've tried:
Set rst = Forms![frmQuickEnter].Recordset
Set rst = Forms![frmMain].Form![frmQuickEnter].Recordset
Set rst = Forms![frmMain].Form![frmQuickEnter].RecordsetClone
All throw errors. Can I open a recordset of a subform, or do I need to do it based on the underlying query.
If I have to do it based on the underlying query, is there code I that would let me add a "Where" statement to that query if I use "Set qd = dbs.QueryDefs!qryQuickEnter"? It's linked to the main form automatically by the primary key, so I don't have any parameters in the query.
Thanks!