Hello everybody,
I would like my Database to be able to perform a Poblational Design. That is, I have a population stored in a table, which is characterized by a number of variables (Age, Gender, Height, Heart Rate...) (at all it makes more than 30 variables).
So I would like to allow the user to select a subpopulation according to the desired criteria.
Let's say, the user want to select a subpopulation with:
My idea, at least to beggin with, was to let the user select a maximal of 2 variables. So, I have implemented a form with 7 Drop-Down List Boxes (LB) as it follows:
LB1: A list with the 30 variable names [corresponding to the files in the Table MedicalData of the population] for choosing Variable1
LB2: [=, >, <]
LB3: Text Box Allowing the user to select a quantity/string
LB4: [AND, OR]
LB5-6: Same as LB1-3 but corresponding to Variable2.
So my question is, is there a way of passing the information retrieved by the form, to a customized query?
PD. My first idea was to program an individual query for each of the variables and then combine them in a form, but I would need to make a new query each time a new medical variable is added, and I was wondering if there is a more direct and pretty way if doing that.
Thank you very much in advance for your comments and suggestions
I would like my Database to be able to perform a Poblational Design. That is, I have a population stored in a table, which is characterized by a number of variables (Age, Gender, Height, Heart Rate...) (at all it makes more than 30 variables).
So I would like to allow the user to select a subpopulation according to the desired criteria.
Let's say, the user want to select a subpopulation with:
Gender = Female AND Heart Rate > 80
My idea, at least to beggin with, was to let the user select a maximal of 2 variables. So, I have implemented a form with 7 Drop-Down List Boxes (LB) as it follows:
LB1: A list with the 30 variable names [corresponding to the files in the Table MedicalData of the population] for choosing Variable1
LB2: [=, >, <]
LB3: Text Box Allowing the user to select a quantity/string
LB4: [AND, OR]
LB5-6: Same as LB1-3 but corresponding to Variable2.
So my question is, is there a way of passing the information retrieved by the form, to a customized query?
PD. My first idea was to program an individual query for each of the variables and then combine them in a form, but I would need to make a new query each time a new medical variable is added, and I was wondering if there is a more direct and pretty way if doing that.
Thank you very much in advance for your comments and suggestions
Comment