from subform entry - link to mainform

from subform entry - link to mainform

hi!

there is mainform (contacts) and subform (purchases)
one contact has many purchases - in one mainform's entry there are many entries inside subform

after adding entry to subform - we can view such entries in subform's report

how from subform entry can view to which contact they correspond?

example
1) open subform entry 
2) click on link inside this entry
3) opens corresponding mainform's entry