How to make a global variable?
Hi all!
I have a simple access form. It as a command button. When I click the command button on the form, the first form closes(dcmd.close), another form opens(docmd.open) which again has a command button. When I again click the command button of this form, the form closes and a new form opens. There are 30 forms in total, with 1 command button in each form. What I need is at the every click of command button a integer variable should have increment +1 so that at the end I can cout the total no. of forms or command button.
|