Click on a button to open a form in a Subform (1 Viewer)

sychoangel

Registered User.
Local time
Today, 08:32
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
 

RuralGuy

AWF VIP
Local time
Today, 09:32
Joined
Jul 2, 2005
Messages
13,826
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

Top Bottom