Ok. I already had some code in the Members form On Current event property. I presume this new code will not run correctly on a new record, so I have put this new code in with the existing If condition modified as follows:
Code:
Public Sub Form_Current()
If Not Me.NewRecord Then
Me.Joined = ELookup("[Status_Date]", "Membership", "[Status] = ""Joined"" and [Member_ID] =" & [ID], "[Status_Date] Desc")
Me.Resigned = ELookup("[Status_Date]", "Membership", "([Status] = ""Resigned"" or [Status] = ""Terminated"" or [Status] = ""Emeritus"" or [Status] = ""Retired"") and [Member_ID] =" & [ID], "[Status_Date] Desc")
If Me.[ID] = 34 then
Me.CtrLedger.SourceObject = "Team Trans Subform"
Else
Me.CtrLedger.SourceObject = "Team Mem_Ledgers Subform"
End If
End If
End Sub
When I ran the original code, it choked on NavigationSubform, with "Compile error: Method or data member not found". Apparently, using the NavigationSubform clause is not needed, as when I deleted them, it works as written. Thank you so much. This is great!