I have a 'DoCmd.OpenForm "frmAfAIS(test)", , qryTest', to open a form based on the Query ( qryTest ). It does this eventually, and in all other ways is perfect for requirement. The SQL for qryTest = SELECT c.Title, c.Forename, c.Surname
FROM tblClients AS c
WHERE c.Client_ID IN (SELECT c2.Client_ID
FROM qrySelectDistinctClient_IDByStaff c2);
However, it prompts me for parameters Forename and Surname, before opening the Form ( frmAfAIS(test)) ? How can I get it to just the load the form with the Recordset, without being prompted. P.S. The SQL for subquery - qrySelectDistinctClient_IDByStaff is :
SELECT DISTINCT tblReferrals.Client_ID
FROM tblReferrals;
Thank you.

FROM tblClients AS c
WHERE c.Client_ID IN (SELECT c2.Client_ID
FROM qrySelectDistinctClient_IDByStaff c2);
However, it prompts me for parameters Forename and Surname, before opening the Form ( frmAfAIS(test)) ? How can I get it to just the load the form with the Recordset, without being prompted. P.S. The SQL for subquery - qrySelectDistinctClient_IDByStaff is :
SELECT DISTINCT tblReferrals.Client_ID
FROM tblReferrals;
Thank you.