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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top