Hello Glaxiom,
Thank you for that reply.
The link you referenced tells how to create and remove a form from a collection.
I need to get the Recordsource (or SQL property) of a disconnected Grid (ADO) on the parent form object.
So do you know of any sites that describe how to reference a form object by its hwnd?
Referencing the object (in VBA) exposes ADD, COUNT, ITEM, and REMOVE
I have tried using frmMyFormObject.Item(lngHWND) but the error says "Subscript out of range".
When I try frmMyFormObject.Item(0), the error says "Subscript out of range".
When I try frmMyFormObject.Item(1), the error says "Type Mismatch"
When I try frmMyFormObject.Item(2), the error says "Subscript out of range".
So referencing the form object is only step 1 of my problem, but I'll be happy if I can figure it out.
Thanks again!
Mac