If I remember correctly, in the "extended" query, you are prompting for the [Enter Box#]. So each time you execute the query, it will prompt you for the value.
Just a thought, but have you considered creating a comboBox for the Box #, and as you change between that, the comboBox for the...