I am having a problem using a combo box to pass over a parameter for my query. My query does not seem to be picking up the value from the combo box on the form.
I have created a Contacts table within that there is a field City as a text box so the user can imput any value.
I've created CityReport form which has a combo box that uses a select statement to pull out all the values from Contacts.City so that you can select them drop down in the combo box. I don't know if because these values aren't stored that there not being passed into my query when i run it.
My query is on CityReport form to run a report is Select * from Contact where City = forms.[CityReport].[City]
I have created a Contacts table within that there is a field City as a text box so the user can imput any value.
I've created CityReport form which has a combo box that uses a select statement to pull out all the values from Contacts.City so that you can select them drop down in the combo box. I don't know if because these values aren't stored that there not being passed into my query when i run it.
My query is on CityReport form to run a report is Select * from Contact where City = forms.[CityReport].[City]