how to call one of the main form control inside a subform?

siamandm
BronzeLounger
Posts: 1227
Joined: 01 May 2016, 09:58

how to call one of the main form control inside a subform?

Post by siamandm »

Hi
if i have a main form called frmMain , and has a combo box inside called cboCity

and i have a sub form called subfrm , inside this form i want to say me.cboCity but it gives error ... how to get it?

regards

User avatar
HansV
Administrator
Posts: 78488
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: how to call one of the main form control inside a subfor

Post by HansV »

Me.Parent.cboCity
Best wishes,
Hans

siamandm
BronzeLounger
Posts: 1227
Joined: 01 May 2016, 09:58

Re: how to call one of the main form control inside a subfor

Post by siamandm »

thank you