Here is a DAO example of how to pass parameters when you execute a query in code.  I don't know how to do this with ADO but ADO does not have a parameters collection so the method would be different.
Dim dbs As DAO.Database 
Dim rst As DAO.Recordset 
Dim qd As DAO.QueryDef
Set dbs = CurrentDb
Set qd = dbs.QueryDefs!qryQCMainSizeCheck
qd.Parameters![YourParm1] = "SomeValue"
qd.Parameters![YourParm2] = "SomeValue"
Set rst = qd.OpenRecordset
If you are only going to execute this query from code I would change the parm names which I gather are now in the form -
Forms!YourFormName!YourControl.  You would replace [YourParm1] with whatever the form field reference is -
qd.Parameters![Forms]![YourForm]![YourControl] =  [Forms]![YourForm]![YourControl]