I want to write a code for one of my command buttons (cmdCalculate) and that it shows the number of times it has been clicked in the lblGroupCount.
I went through some books and I found this two codes that are useful but I still dont know how it works.
This is what i have so far
Private Sub cmdCalculate_Cl ick()
'Calculate the total number of groups, average and total charges.
Dim GroupCount As Integer
then I dont know where to put GroupCount = GroupCount +1...
At the end I have
lblGroupCount.C aption = FormatNumber(Go rupCount)
can anyone tell me what I am doing wrong?
I went through some books and I found this two codes that are useful but I still dont know how it works.
This is what i have so far
Private Sub cmdCalculate_Cl ick()
'Calculate the total number of groups, average and total charges.
Dim GroupCount As Integer
then I dont know where to put GroupCount = GroupCount +1...
At the end I have
lblGroupCount.C aption = FormatNumber(Go rupCount)
can anyone tell me what I am doing wrong?
Comment