Reference to a subform must go through the main form in which the subform is embedded:
Forms!MainFormName!SubformName!ControlOnSubform
where SubformName is the name of the subform control (the control that actually holds the subform object) on the main form -- note that the name of this control may or may not be the same as the Source Object of that control.
--
Ken Snell <MS ACCESS MVP>
"Mark S" <msimonian01[ at ]comcast.net> wrote in message news:%23Kg7Q9BQGHA.2108[ at ]TK2MSFTNGP10.phx.gbl...
[Quoted Text] >I don't usually have problems with simple setvalue maccros but this one >confuses me. I am using Access 2002 and bring information from a simple >open form and trying to populate a subform on another open form. > > The information is being transferred but it only appears after I change > the record and return to prior record that was open on the setvalue macro > > For example : > Forms![FormMain]!SubMain]![Nutrition] > Forms![FormSecondary]![Formula] > > When I do this on form field not in a subform I see the information > instantly. I suspect it has something to do with the subform but I don't > know what. Any advice appreciated. > > ***************************************** > Mark M S >
|