Full Version: Obtain a Field Value From subform on Main Form
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
kstoneman
Is there an easy way to obtain a value from a field in a subform that is highlighted (have focus) on the main form? Right now I am receiving a #Name error message. This is the coding I am using in a text box on the main form:

CODE
  =Forms!frmsubsubmittals2!SubmittalID


Where Forms!frmsubsubmittals2 is the sub form.

Any help is greatly appreciated.

Kevin
niesz
Try:

=Forms.YourMainFormName.YourSubFormCONTROLName.Form.YourControlNameHoldingTheVal
ue

Also see this. It's very helpful when referring to forms/subforms/subsubforms.
kstoneman
thank for your help
niesz
No problem.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.