I have a form called frmIndex with a form header, detail and footer.
The header just contains a logo and title, the footer contains nothing.
The bit I am focused on though is the detail section which contains a subform (the subform has the name: IndexFrame), which is currently displaying frmLogon within it.

when the user clicks a button I want IndexFrame to change its SourceObject from frmLogon to frmMenu.

How do I alter this to do what I am aiming to acheive:
VB Code:
  1. Private Sub Command11_Click()
  2.     Dim Index As New Form_frmIndex
  3.     Index.IndexFrame.SourceObject = frmMenu
  4. End Sub
Why doesn't that work, seems right to me? I also tried it with frmMenu in "" No luck

Thanks, Emdiesse