View Full Version : In subform, there are problems of using command buttons to open filtered forms


xxlu
06-28-2001, 04:06 AM
I place a command button in a form, with which I use it to open another form with condition of [ID]=Form![AnotherFormName]![ID]. It runs good when the form works not as subform. But when I click this button when the form works as subform, a dialogue box appear to ask for Parameter. Why it works properly in the main form, but ask for parameter in subform.

Please help! Thanks a lot.

Rich
06-28-2001, 04:12 AM
You have to reference the main form and subform ie. Forms!MainFormName!SubformName.Form!Control
HTH

xxlu
06-28-2001, 07:37 AM
Rich, I appreciate your help very much. Now it works. Thanks a lot!