Accessing data on a parent from from the subform

From a subform, I need to access fields from the record of the parent form. How can I identify the parent record?

Welcome to DUG…

Check the link between Main form and Sub form…

Use Setrange command to get the header record and use

Please check this out…

http://msdn.microsoft.com/en-us/library/aa660749(v=AX.50).aspx