M
misschanda via AccessMonster.com
Hello,
I have a subform that queries based off selection in main form.
One of the fields on the main form has a combo box with a list of operators:
=, >,<, <=, >= that should be used in conjunction with the text box [size].
I seen this down in a similar database
using the following:
((IIf([Forms]![Main Form]![cboOperator] Is Null Or [Forms]![Main Form]!
[txtAge] Is Null,True,IIf([DateOfbirth] Is Null,Null,Eval(DateDiff("yyyy",
[DateOfBirth],Date())+(Format(Date(),"mmdd")<Format([DateOfBirth],"mmdd")) &
[Forms]![Main Form]![cboOperator] & [Forms]![Main Form]![txtAge]))))=True)
Unlike the above text box [size] doesn't need to be calculated to get a value.
Nonetheless, I am unsure of how to manipulate to fit my needs.
Thanks
LA
I have a subform that queries based off selection in main form.
One of the fields on the main form has a combo box with a list of operators:
=, >,<, <=, >= that should be used in conjunction with the text box [size].
I seen this down in a similar database
using the following:
((IIf([Forms]![Main Form]![cboOperator] Is Null Or [Forms]![Main Form]!
[txtAge] Is Null,True,IIf([DateOfbirth] Is Null,Null,Eval(DateDiff("yyyy",
[DateOfBirth],Date())+(Format(Date(),"mmdd")<Format([DateOfBirth],"mmdd")) &
[Forms]![Main Form]![cboOperator] & [Forms]![Main Form]![txtAge]))))=True)
Unlike the above text box [size] doesn't need to be calculated to get a value.
Nonetheless, I am unsure of how to manipulate to fit my needs.
Thanks
LA