Hi Guys,
Im pretty new to this site so please forgive me if I dont do things how they are suposed to be done.
I am wondering if there is a was to know if a specific field in a query has a parameter. The reason I am wanting to know this is because I have a form with a combo box that lists all queries (query names) and would like to add a subform which would show the relevant text box's for those parameters.
I am planning on showing/hiding each text box with as if statment that ends with .visable = true/false.
lets say for example the query ("qryTest") has 3 fields FirstName, LastName, Age with Age having the parameter forms!menu!age>=21. i would only like visable the text box for "Age" on the subform and have the other fields invisable.
I think I can work out the coding for everything i need apart from the initial vba to work out if the query field has a parameter.
Please help anyway you can or if there is a beter way of doing what i want.
Thanks
Im pretty new to this site so please forgive me if I dont do things how they are suposed to be done.
I am wondering if there is a was to know if a specific field in a query has a parameter. The reason I am wanting to know this is because I have a form with a combo box that lists all queries (query names) and would like to add a subform which would show the relevant text box's for those parameters.
I am planning on showing/hiding each text box with as if statment that ends with .visable = true/false.
lets say for example the query ("qryTest") has 3 fields FirstName, LastName, Age with Age having the parameter forms!menu!age>=21. i would only like visable the text box for "Age" on the subform and have the other fields invisable.
I think I can work out the coding for everything i need apart from the initial vba to work out if the query field has a parameter.
Please help anyway you can or if there is a beter way of doing what i want.
Thanks