F
fcmedina78
I am creating a form that provides criteria to a query for a report. I have
one combo box for the user to select a year, another text box that adds one
for the second year, and another that adds two for the third year. The
calculation for the years works without a problem but when the combobox has
no value I get #error in the text boxes. Here is the expression I am using:
When I enter the expression I enter as:
=IIf(IsNull[QuarterCompYearSelect], ,Val([QuarterCompYearSelect]+1))
Access then converts it to this:
=IIf([QuarterCompYearSelect]="","",Val([QuarterCompYearSelect]+1))
I have tried entering it both ways and get the same error when my year
selection is black. Any Help?
one combo box for the user to select a year, another text box that adds one
for the second year, and another that adds two for the third year. The
calculation for the years works without a problem but when the combobox has
no value I get #error in the text boxes. Here is the expression I am using:
When I enter the expression I enter as:
=IIf(IsNull[QuarterCompYearSelect], ,Val([QuarterCompYearSelect]+1))
Access then converts it to this:
=IIf([QuarterCompYearSelect]="","",Val([QuarterCompYearSelect]+1))
I have tried entering it both ways and get the same error when my year
selection is black. Any Help?