Hi All!

I Need Help for user control.

I am tring to call a "Form" from user control
but it is giving error.

In user control I wrote this code

Sub cmdOk_click()

frmTest.Show vbModal, Me
If ModalOutput Then
strMonth = frmTest.MonthView.Month
strDate = frmTest.MonthView.Day
else
exit sub
end if
End sub

The "Form" consists of "MothView control"

Private Sub cmdOK_Click()
ModalOutput = True
Hide
End Sub

Is this Possible?

If not what is requried?

Thanks In Advance
Anita