Hi all,
I am beginner and may be my question is stupid but I cannot do that.
So, I have a table - Table1,
a numeric field - id1
A form Form1 ,on the form label- Label1 which shows Field1 value
(instead of Label may be another control)
a button -Button1.
I need to increase Field1 value by 1 when Button 1 clicked.
I tried following but there is no any reaction when I clicked the button.
Private Sub mCommand1_Click()
[Table1]![id1] = [Table1]![id1] + 1
End Sub
Thanks for answers
I am beginner and may be my question is stupid but I cannot do that.
So, I have a table - Table1,
a numeric field - id1
A form Form1 ,on the form label- Label1 which shows Field1 value
(instead of Label may be another control)
a button -Button1.
I need to increase Field1 value by 1 when Button 1 clicked.
I tried following but there is no any reaction when I clicked the button.
Private Sub mCommand1_Click()
[Table1]![id1] = [Table1]![id1] + 1
End Sub
Thanks for answers