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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a value from a form to another form

Status
Not open for further replies.

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
 
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
 
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!
 
It's in: frm_PopupNewLesson
 
I figured it out, I the form there was another level of subform. Thanks PHV!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top