Referancing a subforms control

G

Guest

i have a value i would like to assign to a subforms control but i am having
no luck in doing so.

the main form is called "Site_info_frm"
the subform is called "FAsub_info_frm"
and the control is called "File_path"

could someone show me how to put them together to insert the value.

Thanks
 
G

Guest

The basic synthax is:

Forms![MAinFromName]![SubFormName].Form.[ControlName]

so in your case you could do something like:

Forms![Site_info_frm]![FAsub_info_frm].Form.[File_Path]="NewValue"
 
D

Douglas J. Steele

Forms!Site_info_frm!FAsub_info_frm.Form!File_path

Note, though, that depending on how you added FAsub_info_frm as a subform on
Site_info_frm, it's possible that the subform control on Site_info_frm might
be named something other than FAsub_info_frm. If the subform control on
Site_info_frm is named something other that FAsub_info_frm, us the name of
the subform control instead.

You might find it useful to read
http://www.mvps.org/access/forms/frm0031.htm at "The Access Web"
 

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