=DCount("Id_Customer","Distribution","ToAdd=True")
I get the correct result all the time, but when I write in code -
Expand|Select|Wrap|Line Numbers
- Private Sub ToAdd_Click()
- Me.Command8.Caption = Str(DCount("Id_Customer", "Distribution", "ToAdd=True"))
- Me.Requery
- End Sub
When I click a toggle button of a different record/row, the result I get is always by 1 smaller than the correct count result.
Bewildered.
Does anyone know what is the source of this?
Thanks.