OK, thanks for clarifying.
So, to recap, you have a main form, based on a main table, which has an
AutoNumber ID field as a primary key. You have multiple subforms, each
based on a different table, those tables being related to the main table as
"child" tables (i.e., main-to-other is 1:m).
You are trying to get a different subform to display, depending on some
choice in a combo box on the main form (but still related to the record
being displayed on the main form).
Here's a potential alternate approach to having those various subforms swap
in and out (or "popup", as you've described them)...
On your main form, add a tab control. Use a combo box in the form header to
allow the user to select a record from the main table. In the AfterUpdate
event of that (unbound) combo box, requery the form. Base the form on a
query that looks to the form's combobox to select the record to return.
Now, in design view, add controls on the first/front tab that correspond to
your main table fields. You'll know you can "drop" them onto the first tab
when the background of the tab turns dark. Next, click on the next tab.
Drag one of your (previously created) subforms onto this tab. Click the
next tab, drag/drop the next subform. For each of these subforms, link
Parent/Child on that ID field you mentioned
Repeat until you've place one subform on each tab.
Now, when you first open the form, the query looks at the combo box, sees
nothing, so loads nothing. Since there's no ID field, the subforms load
nothing.
Select a record in the header's combobox. Access requeries the source of
the form (using the choice in the combobox), loads the (single) record, then
loads the subforms belonging to that single record. If you click on various
tabs, you see the subform data associated with that tab and with the main
form record.
Does this give you a way to get done what you are trying to do?
Regards
Jeff Boyce
Microsoft Office/Access MVP
N
> Jeff,
>
[quoted text clipped - 179 lines]
>> >> >> >> > up
>> >> >> >> > to complete the specific request they are inputing.
Confused - 27 Jul 2007 22:06 GMT
Jeff,
This will work out. I was attempting to create something a little more
complex for me own benefit. I have done the tab control before and it will
accomplish the task at hand. Thank you for your time and effort to assit me.
In the future I will make sure my questions are more technically sound so
there will not be so much clarification needed.
Thanks again for your help,
Bob
> OK, thanks for clarifying.
>
[quoted text clipped - 225 lines]
> >> >> >> >> > up
> >> >> >> >> > to complete the specific request they are inputing.
Jeff Boyce - 27 Jul 2007 22:45 GMT
Bob
I'm not sure about needing any more 'technical soundness'. But not being
there and not being able to see what you see means we'll take a few more
stabs in the dark first!<g>
Regards
Jeff Boyce
Microsoft Office/Access MVP
> Jeff,
>
[quoted text clipped - 271 lines]
>> >> >> >> >> > up
>> >> >> >> >> > to complete the specific request they are inputing.
Confused - 31 Jul 2007 18:32 GMT
Jeff,
I have solved my problem to some degree. I am now able to use my combo box
to make a selection and pop up the form assinged to each selection. I am
also able to bring the ID from the main form over to the pop up form using a
query that queries last record. In my macro I save the record on my main
form then the query allows me to get the ID from a combo box on the pop up
form. Once I select the ID the record locks and will not allow a new record
to be input. If I change the criteria of the query, the query will bring up
every record that is in the table and assign the new ID to every record.
Although it will allow me to input a new record. Can you help me out with
this? Any and all assistance is greatly appreciated.
Regards,
Bob
> Bob
>
[quoted text clipped - 271 lines]
> >> >> >> >> >> Jeff Boyce
> >> >> >> >> >> Microsoft Office/Access MVP
Jeff Boyce - 31 Jul 2007 21:05 GMT
I'll suggest that you "start over"... post your (new) question as a new
post. More folks will read a new post than will follow this one all the way
down-thread to this point.
More folks = more eyes & brains considering your question.
Regards
Jeff Boyce
Microsoft Office/Access MVP
> Jeff,
>
[quoted text clipped - 334 lines]
>> >> >> >> >> >> Jeff Boyce
>> >> >> >> >> >> Microsoft Office/Access MVP