Get primary key for record on sub form

Gavx

Registered User.
Local time
Today, 23:33
Joined
Mar 8, 2014
Messages
155
I have a main form open.

When I open another form (OtherForm) I want it to get the primary key value of the item listed on the subform of the main form.

In the Open event of the OtherForm I have;

ipkID = Forms!fmMainForm!sbfSubFormControl.Form.CurrentRecord

But it is not working

Or do I have to use recordset?

i should add that this value I am trying to retrieve is not on the subform but is the primary key of the table that is the record source.

thanks
thanks for any help
 

Users who are viewing this thread

Back
Top Bottom