I have a problem in access2000 with queries.
I have a table with farm addresses. The farms are sorted into counties. I also have about 26 queries which say that if i serach for a county (e.g. Warwickshire) it will give me the nearest counties around it with farm addresses (so if i searched for warwickshire it would show Leicestershire, Nottinghamshire, Gloucestershire etc). Now i want to make a search in a form to say that if i enter a county name it will call that corresponding query (i.e. enter county :- Kent. results would call the kent query and show all the nearest counties and the farms in that query i.e. sussex, essex). So it is a bit like calling docmd.openform.....etc but instead call a query results and show them in a list box.
So my question is that does anyone know how to call a query using a txt box search.
Also the results will be shown in a list box (so how would i do this). Do i have to make another query or can i just code a button to call the right query once the county has been entered into a text box.
Thank you for your time.
I have a table with farm addresses. The farms are sorted into counties. I also have about 26 queries which say that if i serach for a county (e.g. Warwickshire) it will give me the nearest counties around it with farm addresses (so if i searched for warwickshire it would show Leicestershire, Nottinghamshire, Gloucestershire etc). Now i want to make a search in a form to say that if i enter a county name it will call that corresponding query (i.e. enter county :- Kent. results would call the kent query and show all the nearest counties and the farms in that query i.e. sussex, essex). So it is a bit like calling docmd.openform.....etc but instead call a query results and show them in a list box.
So my question is that does anyone know how to call a query using a txt box search.
Also the results will be shown in a list box (so how would i do this). Do i have to make another query or can i just code a button to call the right query once the county has been entered into a text box.
Thank you for your time.