M
Mafukufuku
I have querys with sums of patient-properties (they are symptoms like :
coughing, Shingles, disability etc etc.) They query is a summing query
making sums of all these properties for clients that can now be displayed,
ordered by age and gender.
I want users to be able to select from a listbox which column, ie which sum
they want to view.
How do I get a textbox to be bound to a column which is still to be selected
from a listbox. I tried making a table for the listbox: columns: Userchoice,
Fieldname where Fieldname is a text of the name of the column to be
selected.
Even better would be to be able to set the expression for a field to:
=Dcount "[Idclient]"; [healthissues]"; "[age]= Between
[forms]![form1monthlyreport][age1from] and
[forms]![form1monthlyreport]![age1to] AND [gender]=[combo1] AND
[combo2]![qry1sumofhealthissues]=-1")
So users enter gender, between Ages and select from combo2 a symptom to be
counted.
So the question is: can the value from a listbox/combobox be used as a
fieldname in an expression or to refer to a column in a query?
Thank you
coughing, Shingles, disability etc etc.) They query is a summing query
making sums of all these properties for clients that can now be displayed,
ordered by age and gender.
I want users to be able to select from a listbox which column, ie which sum
they want to view.
How do I get a textbox to be bound to a column which is still to be selected
from a listbox. I tried making a table for the listbox: columns: Userchoice,
Fieldname where Fieldname is a text of the name of the column to be
selected.
Even better would be to be able to set the expression for a field to:
=Dcount "[Idclient]"; [healthissues]"; "[age]= Between
[forms]![form1monthlyreport][age1from] and
[forms]![form1monthlyreport]![age1to] AND [gender]=[combo1] AND
[combo2]![qry1sumofhealthissues]=-1")
So users enter gender, between Ages and select from combo2 a symptom to be
counted.
So the question is: can the value from a listbox/combobox be used as a
fieldname in an expression or to refer to a column in a query?
Thank you