To know which form is active.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The below code has been added by me in a calendar control's save button's
click event(which was down loaded from a site).I also want to use the same
calendar control in other forms.So I want to perform the inner if condition
only when frmin_out_Time form is active
If Forms.frmin_out_Time = True Then
If Forms.frmin_out_Time.fraMode = 1 Then
Forms.frmin_out_Time.cmdChangeAttDate.Visible = True
End If
End If

There's syntax error in the outer If condition.
So how do I write the syntax to say which form is active(in use).
 
Back
Top