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
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