I want to limit the number of times used on a "free trial" basis. I have picked "number of times" for two reasons. One being changing date on computer and "number of times" will tell me how active the person is with what I made. Although I could probably change what is below to be date based since the you can type in a date to the OnClick event. I could probably base something on the date entered plus 14 or whatever.
Firstly, does anyone see any potential problem with opening the form in design and changing the number entered on the OnClick event. It works fine but I don't know if there would be any corruption problems. The following was the only way I could think of to record but without having a value in a table.
The following code is on a label on another form.
DoCmd.SetWarnings False
DoCmd.OpenForm "Form1", acDesign, "", "", , acNormal
Forms!Form1!abc.OnClick = Forms!Form1!abc.OnClick + 1
DoCmd.Close acForm, "Form1"
DoCmd.OpenForm "Form1", acNormal, "", "", , acNormal
DoCmd.SetWarnings True
=Forms!Form1!abc.OnClick in an unbound textbox will give the value entered in the OnClick so it will be easy to use that to block any code.
If this appears to be a trouble free way does anyone know how I could do something similar in Excel to stop code from running.
Firstly, does anyone see any potential problem with opening the form in design and changing the number entered on the OnClick event. It works fine but I don't know if there would be any corruption problems. The following was the only way I could think of to record but without having a value in a table.
The following code is on a label on another form.
DoCmd.SetWarnings False
DoCmd.OpenForm "Form1", acDesign, "", "", , acNormal
Forms!Form1!abc.OnClick = Forms!Form1!abc.OnClick + 1
DoCmd.Close acForm, "Form1"
DoCmd.OpenForm "Form1", acNormal, "", "", , acNormal
DoCmd.SetWarnings True
=Forms!Form1!abc.OnClick in an unbound textbox will give the value entered in the OnClick so it will be easy to use that to block any code.
If this appears to be a trouble free way does anyone know how I could do something similar in Excel to stop code from running.