Click on a button to open a form in a Subform

sychoangel

Registered User.
Local time
Yesterday, 23:09
Joined
Jul 4, 2008
Messages
20
HELP!!! I have a main form which has some buttons... when I click on the button I would like a form to open in a subform... so far I can click on the button & it opens in a new window. How do I get it to open in the form.

Current Code:

Private Sub CheckIPOwner_Click()
On Error GoTo Err_CheckIPOwner_Click
DoCmd.OpenForm "Check_Owner"
Exit_CheckIPOwner_Click:
Exit Sub
Err_CheckIPOwner_Click:
MsgBox Err.Description
Resume Exit_CheckIPOwner_Click
End Sub
 
I'm not sure what you are trying to accomplish but how about designing your SubForm on your form and just make it Visible when the button is pressed?
 

Users who are viewing this thread

Back
Top Bottom