| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| How do you refer to a sub-form control (on an open form) in a query? The code below is incorrect and opens the "Enter Parameter value" window. Forms!MainForm!SubForm.Forms!ControlName |
|
#2
| |||
| |||
| "JimP" <j_pockmire@comcast.net> wrote in message news:6c2dnUhi_NTWZYvUnZ2dnUVZ_gadnZ2d@giganews.com ... > How do you refer to a sub-form control (on an open form) in a query? The > code below is incorrect and opens the "Enter Parameter value" window. > > Forms!MainForm!SubForm.Forms!ControlName You almost had it: Forms!MainForm!SubForm.Form!ControlName SubForm.Form means 'the form hosted by the subform control' |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.