- Local time
- Today, 13:45
- Joined
- Jul 9, 2003
- Messages
- 17,517
I want to show an instance of a form in a sub-form window on my main form. But everything I try fails. 
Any help or advice would be appreciated.
Here is my code…

Any help or advice would be appreciated.
Here is my code…
Code:
Public Sub CopyOrder2() ' Initiates an instance of the form "Form_Orders"
Dim frmOrders3 As Form
'(I tried it as Static as well) 'Static frmOrders3 As Form_Orders
Set frmOrders3 = New Form_Orders
With frmOrders3
.Visible = True
.Detail.BackColor = vbWhite
.cmdCopyOrder.Visible = False
End With
End Sub
Private Sub Command2_Click()
On Error GoTo Err_Command2_Click
CopyOrder2 ' Runs the code to create an instance of the form
Let subOrders.SourceObject = "frmOrders3" 'Set the sub report window to the new instance of the form
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
MsgBox Err.Description
Resume Exit_Command2_Click
End Sub