dominicg123
Technical User
I have a form called main that I use for a menu on the left side of the screen. I use an option group with the following code to navigate between different sub-form that are use to display information:
Select Case Me![Menu Options]
Case 1
Me![DisplayPanel].SourceObject = "Contacts"
Case 2
Me![DisplayPanel].SourceObject = "Contacts List"
Case 3
Me![DisplayPanel].SourceObject = "Actions"
Case 4
Me![DisplayPanel].SourceObject = "Loans"
end select
When I am in Actions sub-form I want to display the Contact sub-form with a specific record in the form (filter). Actions and Contacts are related. This is what I tryied:
Private Sub btnGoToContact_Click()
Form![Main]![DisplayPanel].SourceObject = "Contacts"
Form![Contacts].Filter = "[Contact ID]=" & Me.ContactID
End Sub
I get object required error message
Select Case Me![Menu Options]
Case 1
Me![DisplayPanel].SourceObject = "Contacts"
Case 2
Me![DisplayPanel].SourceObject = "Contacts List"
Case 3
Me![DisplayPanel].SourceObject = "Actions"
Case 4
Me![DisplayPanel].SourceObject = "Loans"
end select
When I am in Actions sub-form I want to display the Contact sub-form with a specific record in the form (filter). Actions and Contacts are related. This is what I tryied:
Private Sub btnGoToContact_Click()
Form![Main]![DisplayPanel].SourceObject = "Contacts"
Form![Contacts].Filter = "[Contact ID]=" & Me.ContactID
End Sub
I get object required error message