Question : Parameter dialog box unexpectedly pops up while dynamically linking unbound subforms to a main form

Unexpected parameter dialog box pops up on focus changes involving a main form that is dynamically linked to 4 unbound subforms

Hello Experts,
I am stumped on this one, and I would appreciate any help that you could give me.

I have a main form that has 4 option buttons [within an option group], 4 combo boxes, and one subform control.  Each of the option buttons trigger a specific combo box to be made visible to the user.  In turn, the bound field of each of the combo boxes is used [ as the master link] to dynamically link to and load a specific child subform to the main form’s subform control.  Thus the subforms each interact with the main form as intended, displaying the correct child records based on the value of selection from the combo box.  

The only problem I’m having is that just before focus is transferred to a different option button, a parameter dialog box appears prompting for a parameter that I recognize as the child link field for the most recently used subform prior to the change of focus.  At that point, the application can be resumed without error, merely by clicking the “OK” button on the parameter dialog box.  I have tried to eliminate this problem by using the lostFocust event to set the child link to “” and then reset the link in the gotFocus event with the child link of the subform that will be getting the Focus.  This stopped the parameter box from appearing, but caused the link to fail to return any records.  How can I fix this???

Answer : Parameter dialog box unexpectedly pops up while dynamically linking unbound subforms to a main form

PAQed, with points refunded (500)

Computer101
E-E Admin
Random Solutions  
 
programming4us programming4us