There are at least two ways to do this.
First is to use the
openargs arguments to pass the selected value to the form being opened. The help on
openargs is fairly clear. Basically, any value you 'pass' to an opening form can be used by that form:
DoCMd.OpenForm "LaDiDa" , , , me!P_code
(Verify the number of placeholder commas - I only know that
openargs is the LAST argument to the OpenForm method.
When "LaDiDa" opens, it will "know" about P_code.
The second requries that you allow the calling form to stay open, if not visible - then refer to the combo box on the first form, in the second form's P_code control source.
=Forms!MyFirstForm!P_code
Jim
Me? Ambivalent? Well, yes and no....
Another free Access forum:
More Access stuff at