J
John
Hi
I have a form with a list box. The list box is bound to a query which has
below as the parameter;
[Forms]![MyForm]![Client]
[Client] is a drop down on the same form. So when a user selects a client
the listbox displays the relevant records for the client. This works fine.
The problem is that when I try to close the form by clicking on a button
which has the below code;
DoCmd.Close acForm, Me.Name
I get a dialog that says 'Enter Parameter Value' and the value it is asking
for is for [Forms]![MyForm]![Client]. How can I get rid of this message
while successfully being able to close the form via code?
Thanks
Regards
I have a form with a list box. The list box is bound to a query which has
below as the parameter;
[Forms]![MyForm]![Client]
[Client] is a drop down on the same form. So when a user selects a client
the listbox displays the relevant records for the client. This works fine.
The problem is that when I try to close the form by clicking on a button
which has the below code;
DoCmd.Close acForm, Me.Name
I get a dialog that says 'Enter Parameter Value' and the value it is asking
for is for [Forms]![MyForm]![Client]. How can I get rid of this message
while successfully being able to close the form via code?
Thanks
Regards