Just to expand on Sunny's post,
While you in the Query Builder, right click in the Criteria box of the CompanyID and select Build, you can then navigate to Forms>Your Form>Your Control this will then base the Criteria on the Control you have selected.