Refresh form based on field value (1 Viewer)

reglarh

Registered User.
Local time
Today, 02:58
Joined
Feb 10, 2014
Messages
118
I have a club member table that has entries for both husband and wife, with separate member numbers. Each entry records the member number of the other half of the couple. When in a form that displays one of the couple, I want to click on the partner number field and refresh the form with the partner details.

I can't see how to do this. My attempts at using a macro reassigning the member number to the partner number only produces a blank form.

Any ideas?
 

Ranman256

Well-known member
Local time
Today, 05:58
Joined
Apr 9, 2015
Messages
4,337
you can change the record on the detail form
Code:
sub btnJump_Click()
me.Filter="[id]=" & me.PartnerID
me.FilterOn  = true
end sub
 

reglarh

Registered User.
Local time
Today, 02:58
Joined
Feb 10, 2014
Messages
118
Thanks, so simple!
 

Users who are viewing this thread

Top Bottom