Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Value shown on the subform 1

Status
Not open for further replies.

chrislx

Programmer
Oct 17, 2003
32
0
0
US
Hi,

Please help me on the following question:

What is the right format to access the value in the subform?

I have a Main-Form and a Sub-Form. I want to display the value in a field, Field-1, of the sub form.

I tried this way, but does not work:
MsgBox Forms![Main-Form]![Sub-Form].[Field-1]

what is wrong?

Thanks for the help,
chrislx


 
Have you tried this ?
MsgBox Forms![Main-Form]![Sub-Form].Form.[Field-1]
Note:Sub-Form must be the name of the control in Main-Form.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top