Hi,
I have a continuous form with three fields: id, date, score. I am
trying to add total field on the form footer to show total score for
certain year.
I created a unbound textbox and set the control source as:
=sum(iif(year(date)=2007,nz(score),0))
It work, and give me the subtotal for 2007. Now I want to add another
unbound textbox(text1) on the footer so that people can input the
year, and I change the control source to
=sum(iif(year(date)=[text1],nz(score),0))
It shows #error
I also tried [forms].[myformname].[text1] instead of [text1], same
error. Can anyone help me out?
Thank you
Evan