I've got a form - "frmLookup" (with a subform) that works very happily
on its own. The form has a list box, which when updated requeries the
subform to display the appropriate results.
The problem is that for the final user interface, I had planned to use
a "frmDisplay" form which had a number of menu items and then depending
on what the user selected, it would display the appropraite form in a
subform beneath the menu items. I did this mainly for ease of
controlling the window location, less frightening to the user and also
to avoid a mass of pop-ups. However, when I try to display "frmLookup"
in this subform, the subform within "frmLookup" can no longer find the
listbox I referenced as Forms.frmLookup.lstGroup. I couldn't get the
right reference for it to work through the second sub form. Even if I
did, I would like to be able to run "frmLookup" on it's own as well as
through the display subform.
Does anyone have any ideas if this is possible and if so how - I
thought functions might work but didn't have a lot of luck returning a
"lstGroup" value (is that possible from a public function in a module??
Or failing that, what would the correct reference be to reference the
lstbox in "frmLookup".
Cheers,
Reg