Hi John,
You need to put some criteria in the "Where Condition" box for your
macro that opens the form. Let's say you have a field called id that is
the primary key and the text box on the form that is bound to the id is
called txtID. Then you could put [id]=Forms![frm_bldInfo]![txtID] in
the Where box.
Miriam
Jo K. - 30 Apr 2005 17:22 GMT
this is still not working. I keep getting the message:
Enter parameter value: Forms![frm_bldInfo]![JobNo]
Just to clarify what I have set up:
-Primary key is field called JobNo
-query called qry_main
-form called frm_main (whose source is qry_main)
-macro button in frm_main opens a form called frm_bldInfo
this form contains (source: qry_main).
I have placed the following expression in the Where condition of the
"OpenForm" action in the macro. [JobNo]=[Forms]![frm_bldInfo]![JobNo]
Note: the name of the text box in the frm_bldInfo is the bounded JobNo
field.
Both the forms have the JobNo field. Hence JobNo is used twice in the Where
condition. Is this right?
> Hi John,
>
[quoted text clipped - 5 lines]
>
> Miriam