Jan 11, 2007 #1 AT76 Technical User Apr 14, 2005 460 US Hi all, Is there a way to pass a value from a form to another form? Or, how would you access a form from another form? Thanks!!! Here's what I have: Code: Me!Dest1!Dest1FieldName = Forms!Source!Source1FieldName
Hi all, Is there a way to pass a value from a form to another form? Or, how would you access a form from another form? Thanks!!! Here's what I have: Code: Me!Dest1!Dest1FieldName = Forms!Source!Source1FieldName
Jan 11, 2007 #2 PHV MIS Nov 8, 2002 53,708 FR And what's wrong with what you have, provided Source is an open mainform ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
And what's wrong with what you have, provided Source is an open mainform ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Jan 11, 2007 Thread starter #3 AT76 Technical User Apr 14, 2005 460 US Yes, Source is open. Destination is actually a subform. I'm trying this but not working: Me!Me_Selector!Add_Lesson_To_Course = Forms!frm_PopupNewLesson!Lesson_Name Code: Me!Dest1MainForm!Dest1SubForm.Dest1SubFormFieldName= Forms!Source!Source1FieldName but it tells me it doesn't recognize the mainform. Any idea? Thanks! Upvote 0 Downvote
Yes, Source is open. Destination is actually a subform. I'm trying this but not working: Me!Me_Selector!Add_Lesson_To_Course = Forms!frm_PopupNewLesson!Lesson_Name Code: Me!Dest1MainForm!Dest1SubForm.Dest1SubFormFieldName= Forms!Source!Source1FieldName but it tells me it doesn't recognize the mainform. Any idea? Thanks!
Jan 11, 2007 #4 PHV MIS Nov 8, 2002 53,708 FR Have a look here: http://support.microsoft.com/?kbid=209099 In which form is located your code ? ie what is Me in your code ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Have a look here: http://support.microsoft.com/?kbid=209099 In which form is located your code ? ie what is Me in your code ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Jan 11, 2007 Thread starter #5 AT76 Technical User Apr 14, 2005 460 US It's in: frm_PopupNewLesson Upvote 0 Downvote
Jan 11, 2007 Thread starter #6 AT76 Technical User Apr 14, 2005 460 US I figured it out, I the form there was another level of subform. Thanks PHV! Upvote 0 Downvote