lookforsmt
Registered User.
- Local time
- Tomorrow, 00:49
- Joined
- Dec 26, 2011
- Messages
- 672
HI!
i have a form which imports excel into db. Below code displays the same when clicked in unbound text field.
The challenge is once the form is closed it reset to zero.
How can i keep the last count displayed after the form is reopened again and it reset only after the date is changed.
any help to modify the code.
i have a form which imports excel into db. Below code displays the same when clicked in unbound text field.
Private Sub cmdcopyfiles_6_Click()
Static cnt As Long
cnt = cnt + 1
Me.cmd_Count.SetFocus
Me.cmd_Count.Text = "Clicked" & cnt & " times"
End Sub
The challenge is once the form is closed it reset to zero.
How can i keep the last count displayed after the form is reopened again and it reset only after the date is changed.
any help to modify the code.