I have a MEMBERSHIP MASTER form which carries membership data, and this form has a subform called MEMBERSHIP SUBS which shows all the annual subscriptions the member has had over the years
this is the linking :
Parent Form
MEMBERSHIP MASTER
MemberNo
Subform
MEMBERSHIP SUBS
MemberNo, SubscriptionID
From any other form which carries a MemberNo value I use this command:
DoCmd.OpenForm "MEMBERSHIP MASTER", acNormal, "", "[MemberNo]=" & [MemberNo] , , acNormal
to open the form for any given member, and the MEMBERSHIP SUBS subform obviously opens at the first subscription for that member. Simple enough
Now....I have a new list form that lists all the Subscriptions in MemberNo,SubscriptionID order .From a button on this list form I want to be able to open MEMBERSHIP MASTER form for the MemberNo and have the MEMBERSHIP SUBS subform open at the SubscriptionID for that MemberNo.
How do I achieve this ? I did this and it didnt work:
DoCmd.OpenForm "MEMBERSHIP MASTER", acNormal, "", "[MemberNo]=" & [MemberNo] & " AND Forms![MEMBERSHIP MASTER]![MEMBERSHIP SUBS].Form![SubID] =" & [SubID] & " AND Forms![MEMBERSHIP MASTER]![MEMBERSHIP SUBS].Form![MemberNo] =" & [MemberNo], , acNormal
I just got an empty form , no error messages. Thank you
this is the linking :
Parent Form
MEMBERSHIP MASTER
MemberNo
Subform
MEMBERSHIP SUBS
MemberNo, SubscriptionID
From any other form which carries a MemberNo value I use this command:
DoCmd.OpenForm "MEMBERSHIP MASTER", acNormal, "", "[MemberNo]=" & [MemberNo] , , acNormal
to open the form for any given member, and the MEMBERSHIP SUBS subform obviously opens at the first subscription for that member. Simple enough
Now....I have a new list form that lists all the Subscriptions in MemberNo,SubscriptionID order .From a button on this list form I want to be able to open MEMBERSHIP MASTER form for the MemberNo and have the MEMBERSHIP SUBS subform open at the SubscriptionID for that MemberNo.
How do I achieve this ? I did this and it didnt work:
DoCmd.OpenForm "MEMBERSHIP MASTER", acNormal, "", "[MemberNo]=" & [MemberNo] & " AND Forms![MEMBERSHIP MASTER]![MEMBERSHIP SUBS].Form![SubID] =" & [SubID] & " AND Forms![MEMBERSHIP MASTER]![MEMBERSHIP SUBS].Form![MemberNo] =" & [MemberNo], , acNormal
I just got an empty form , no error messages. Thank you