get a field of a subform, please help

mmm286

New member
Local time
Today, 10:21
Joined
Mar 29, 2014
Messages
9
Hi,

I have a Main Form. Then I have a SubForm that have other two subforms and a button.
These button open a new Form.
I need a field of the SubForm in the new Form.

I try with these, but doesn't works. I thing I try all the possibilities but nothing:

Code:
Me.Id_Episodio = Forms!Paciente!Subform1.Episodio_Sub!Id_Episodio

could you help me please?
Many thanks and sorry for my english!
 
You have not told us much but the answer might be:

Me.Id_Episodio = Forms!Paciente!Subform1.Form!Episodio_Sub!Id_Episodio

This is the page most of us refered to when we were learning.
It isn't comprehensive but it does the job.
http://access.mvps.org/access/forms/frm0031.htm
 
You have not told us much but the answer might be:

Me.Id_Episodio = Forms!Paciente!Subform1.Form!Episodio_Sub!Id_Episodio

This is the page most of us refered to when we were learning.

Thanks but don't works.
It says me that don't find the field 'Subform1'
:(
 
Subform1 is probably the name of the form object you are using for the SourceObject property of your subformcontrol.

You must use the name of the subformcontrol itself.
 

Users who are viewing this thread

Back
Top Bottom