P
PeteCresswell
Code looks like this:
---------------------------------------------------------------------------------------
3130 WorkTable_Create
"ttblSecurity_AddBuyClone_LadderParents",
zmtblSecurity_AddBuyClone_LadderParents"
3131 CurrentDb.Execute
"qrySecurity_AddBuyClone_LadderParents_Populate", dbFailOnError
3132 .subLadderParents.Form.RecordSource =
"qrySecurity_AddBuyClone_LadderParents_Display"
3139 .subLadderParents.Visible = True
---------------------------------------------------------------------------------------
It's creating a work table, populating it, and then setting a
subform's .RecordSource to a query that reads the table.
Stepping through the code:
Pausing at line 3132
- I can open up that query and see a bona-fide recordset.
- I can see .subLadderParents.Name via the Immediate window
- But when I try to get to .Form.Name in the Immediate window it
dies with the same "2467" error.
Needless to say, it dies at line 3132 with "2467: Expression you
entered refers to an object that is closed or doesn't exist."
Seems like I've been here before, but I can't recall what the issue
was.
---------------------------------------------------------------------------------------
3130 WorkTable_Create
"ttblSecurity_AddBuyClone_LadderParents",
zmtblSecurity_AddBuyClone_LadderParents"
3131 CurrentDb.Execute
"qrySecurity_AddBuyClone_LadderParents_Populate", dbFailOnError
3132 .subLadderParents.Form.RecordSource =
"qrySecurity_AddBuyClone_LadderParents_Display"
3139 .subLadderParents.Visible = True
---------------------------------------------------------------------------------------
It's creating a work table, populating it, and then setting a
subform's .RecordSource to a query that reads the table.
Stepping through the code:
Pausing at line 3132
- I can open up that query and see a bona-fide recordset.
- I can see .subLadderParents.Name via the Immediate window
- But when I try to get to .Form.Name in the Immediate window it
dies with the same "2467" error.
Needless to say, it dies at line 3132 with "2467: Expression you
entered refers to an object that is closed or doesn't exist."
Seems like I've been here before, but I can't recall what the issue
was.