Hi,
I have the following statement form my form TIME3_ONTIMER
timer set at 750 (I have blinking fields, that need such small value for timer).
If Forms!Time3.ActiveControl.NAME <> "text9" And Forms!Time3.ActiveControl.NAME <> "SPECNOTE" Then
Forms!Time3.Text9.SetFocus
End If
This form also has a trigger _ONTIMER to closes after 5 minutes of inactivity. Now!, right before the form closes somewhere inbetween of open and closed the code on timer still checks for the activecontrol names which are already not available. and it gives out an error that the controls are not to be found. So I thought that by first checking if the form is open or not and then runt the above written code I would not get the error. But! I do not know what the syntax for IF FORM X IS OPEN is. Could someone please help me with that or may be give a different solution for my problem.
Thanx
Good luck,
Kuzz
"Time spent debating the impossible subtracts from the time during which you
can try to accomplish it."
I have the following statement form my form TIME3_ONTIMER
timer set at 750 (I have blinking fields, that need such small value for timer).
If Forms!Time3.ActiveControl.NAME <> "text9" And Forms!Time3.ActiveControl.NAME <> "SPECNOTE" Then
Forms!Time3.Text9.SetFocus
End If
This form also has a trigger _ONTIMER to closes after 5 minutes of inactivity. Now!, right before the form closes somewhere inbetween of open and closed the code on timer still checks for the activecontrol names which are already not available. and it gives out an error that the controls are not to be found. So I thought that by first checking if the form is open or not and then runt the above written code I would not get the error. But! I do not know what the syntax for IF FORM X IS OPEN is. Could someone please help me with that or may be give a different solution for my problem.
Thanx
Good luck,
Kuzz
"Time spent debating the impossible subtracts from the time during which you
can try to accomplish it."