Solved Reference to another subform (1 Viewer)

FuzMic

DataBase Tinker
Local time
Today, 20:17
Joined
Sep 13, 2006
Messages
719
Hi members
I have a main form with number of subforms separated by tab control.
Lets say there is field T1 in SubFrm1 & in subFrm2 there is field FldNew. i want to place T1 in FldNew. What is its field value.
EASY but I don't know. PLEASE!
 

theDBguy

I’m here to help
Staff member
Local time
Today, 05:17
Joined
Oct 29, 2018
Messages
21,454
Have you tried maybe something like?

Forms!MainFormName.Subform2Name.Form!FldNew= Forms!MainFormName.Subform1Name.Form!T1
 

FuzMic

DataBase Tinker
Local time
Today, 20:17
Joined
Sep 13, 2006
Messages
719
Will try thereon. THANKS
 

Micron

AWF VIP
Local time
Today, 08:17
Joined
Oct 20, 2018
Messages
3,478
I have a main form with number of subforms separated by tab control.
This could prove interesting. I interpreted that to mean that
a main form has a subform control
that subform control has a tab control
two or more pages of the tab control each contains a form

That is a different animal indeed.
 

FuzMic

DataBase Tinker
Local time
Today, 20:17
Joined
Sep 13, 2006
Messages
719
Micron ..the tabCtrl is in the main form. Each page of the tab has one subform
 

FuzMic

DataBase Tinker
Local time
Today, 20:17
Joined
Sep 13, 2006
Messages
719
DBguy

I use instead at target field ControlSource

=Forms!MainfrmName!sourceSubfrmControlName!fieldName

It reflect source field value. Cheerio
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:17
Joined
May 7, 2009
Messages
19,233
if you are referring within Same main form:

[subform1].control = [subform2].control
 

theDBguy

I’m here to help
Staff member
Local time
Today, 05:17
Joined
Oct 29, 2018
Messages
21,454
DBguy

I use instead at target field ControlSource

=Forms!MainfrmName!sourceSubfrmControlName!fieldName

It reflect source field value. Cheerio
Congrats! Good luck with your project.
 

Users who are viewing this thread

Top Bottom