Hi All
Access2002/2007
WinXpPro Sp2
Could someone help me sort out this syntax please?...
It's a Dcount in the controlsource of a textbox which needs to refer to the value in another textbox on the same form. I want it to re-'self-calculate' as the form is navigated along its records....
my_textBox.controlsource = "DCount('[Unique_No]','Addrs','[ID]'=[Me].[Form].[Form_Hdrs_ID_TextBox].Value)"
I've tried 10x10,000 permutations with commas, full-stops(periods), square brackets, parenthesees, exclamation marks (bangs), references to "me" references to "me.form", references to Forms!MyFormName.Form" blah blah ...... and still it fails with #Error or #Name. Maybe if I had enough monkeys, typewriters and the infinity of time I might get it right!
Thanks
Access2002/2007
WinXpPro Sp2
Could someone help me sort out this syntax please?...
It's a Dcount in the controlsource of a textbox which needs to refer to the value in another textbox on the same form. I want it to re-'self-calculate' as the form is navigated along its records....
my_textBox.controlsource = "DCount('[Unique_No]','Addrs','[ID]'=[Me].[Form].[Form_Hdrs_ID_TextBox].Value)"
I've tried 10x10,000 permutations with commas, full-stops(periods), square brackets, parenthesees, exclamation marks (bangs), references to "me" references to "me.form", references to Forms!MyFormName.Form" blah blah ...... and still it fails with #Error or #Name. Maybe if I had enough monkeys, typewriters and the infinity of time I might get it right!

Thanks