G
Guest
I have two subforms on the same form. They use different queries with a
common field. In some cases, SF1 (Donors) shows a record with multiple
endowments, which appear in a listbox. SF2 (Endowments) defaults to the
first endowment in the list, which is fine. But I want to click in the
listbox in SF1 and cause SF2 to go to another of the related endowments.
Clicking the list box calls code like this in a general module (hence the
long Forms references.) I get no error messages, but nothing happens in SF2.
I tried breaking the Parent/Child link, but to no avail. I would appreciate
any suggestions:
Public Sub SetEndwmtPointer(CallBox)
Dim rst As DAO.Recordset
Set rst = Forms!SwitchboardNew!EndwmtSubFrm.Form.Recordset
rst.FindFirst "EnFno" = " & Forms!SwitchboardNew!DonorSubFrm!CallBox & "
'"
Forms!SwitchboardNew!EndwmtSubFrm.Form.Bookmark = rst.Bookmark
Forms!SwitchboardNew!EndwmtSubFrm.Form.Requery
End Sub
Thanks in advance.
common field. In some cases, SF1 (Donors) shows a record with multiple
endowments, which appear in a listbox. SF2 (Endowments) defaults to the
first endowment in the list, which is fine. But I want to click in the
listbox in SF1 and cause SF2 to go to another of the related endowments.
Clicking the list box calls code like this in a general module (hence the
long Forms references.) I get no error messages, but nothing happens in SF2.
I tried breaking the Parent/Child link, but to no avail. I would appreciate
any suggestions:
Public Sub SetEndwmtPointer(CallBox)
Dim rst As DAO.Recordset
Set rst = Forms!SwitchboardNew!EndwmtSubFrm.Form.Recordset
rst.FindFirst "EnFno" = " & Forms!SwitchboardNew!DonorSubFrm!CallBox & "
'"
Forms!SwitchboardNew!EndwmtSubFrm.Form.Bookmark = rst.Bookmark
Forms!SwitchboardNew!EndwmtSubFrm.Form.Requery
End Sub
Thanks in advance.