Hello,
I have been struggling with this for a few weeks, maybe just not possible!
I have a form, frm_clients. The record source is a query, qry_clients. The selection criteria for qry_clients comes from another form frm_SearchClients.
frm_clients has a subform which displays a list of subsidiaries. I would like to be able to select any subsidiary and refresh frm_clients to display the data associated with the subsidiary.
I have inserted a second criteria in qry_clients but it prompts me for the first criteria which would have come from frm_SearchClients. If I click OK the query returns the value I want.
Is there a way to indicate that if frm_SearchClients is not opened and the first criteria is blank the query should bypass the prompt and use the second criteria?
I have tried with [criteria1] or [criteria2], I have tried with IIf is null, no luck.
Thank you
I have been struggling with this for a few weeks, maybe just not possible!
I have a form, frm_clients. The record source is a query, qry_clients. The selection criteria for qry_clients comes from another form frm_SearchClients.
frm_clients has a subform which displays a list of subsidiaries. I would like to be able to select any subsidiary and refresh frm_clients to display the data associated with the subsidiary.
I have inserted a second criteria in qry_clients but it prompts me for the first criteria which would have come from frm_SearchClients. If I click OK the query returns the value I want.
Is there a way to indicate that if frm_SearchClients is not opened and the first criteria is blank the query should bypass the prompt and use the second criteria?
I have tried with [criteria1] or [criteria2], I have tried with IIf is null, no luck.
Thank you