Value in field of sub form

R

ron bromwell

I have a button on a form. This form also has a sub form.
I want to set up code so that when the button on the form
is clicked, it will display a value of a text box in the
sub form. I plan to use a simple msgbox to display the
value. What I can't seem to figure out is how to
reference the value in the text box of the sub form. I
thought the following would work, but I get a "method or
data member not found" error when I open the form:

msgbox subfrom.textfield.value
 
G

Gerald Stanley

Are you referencing the subform by it's control name? The
syntax should be
Me!subformcontrol.Form!textfield.Value

Hope This Helps
Gerald Stanley MCSD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top