JamesMcS
Keyboard-Chair Interface
- Local time
- Today, 18:23
- Joined
- Sep 7, 2009
- Messages
- 1,819
Afternoon all.... Happy Friday!
I've got a series of text boxes on a subform whose control sources are update using VBa, depending upon what the user has selected in some combo boxes on the main form.
The control source runs along the lines of
but it comes up with an error.
Weird thing is, if I change the =True to =-1 or even remove it altogether in layout view, it works OK. Weirder still, if I change the code to make the control sources all feature =-1, it errors - then if you change it to =True in layout view, it works OK.... grrr! Any ideas?
I've got a series of text boxes on a subform whose control sources are update using VBa, depending upon what the user has selected in some combo boxes on the main form.
The control source runs along the lines of
Code:
=avg(iif([Tagged]=True,[fieldname],Null))
Weird thing is, if I change the =True to =-1 or even remove it altogether in layout view, it works OK. Weirder still, if I change the code to make the control sources all feature =-1, it errors - then if you change it to =True in layout view, it works OK.... grrr! Any ideas?