I have a form that has data & several command buttons that open other secondary forms. I want to put a field from one of the secondary forms onto the primary form. What is the best way to accomplish this?
Thanks for any help you can give me.
#error is returned on my form. here is my code (in Control Source): =DLookUp("Area","[Graduation Information]","[soc_sec] = Forms![Graduation Information]!soc_sec").
Area is a Field in the Graduation Information Table
Thanks for your response. Unfortunately, the
#error is still returned on my form. I tried changing Forms to Table, didn't help. I also added Tables! before the first "[Graduation Information]" like this:
=Nz(DLookUp("Area","Tables![Graduation Information]","[soc_sec] = Forms![Graduation Information]!soc_sec"),"") and received:
The Microsoft Jet database engine cannot find the input table or query Tables![Graduation Information]. Make sure it exists and that its name is spelled correctly. The table does exist.
DLookUp("Area","[Graduation Information]","[soc_sec] = Forms![Graduation Information]!soc_sec")
Obviously [Graduation Information] is an open main form with a populated control named soc_sec, and soc_sec and Area are some fields in the [Graduation Information] table ?
Graduation Information is a form that can be accessed through a command button on the main form StudentInformation. Graduation Information is not opened. The Graduation Information table does contain the soc_sec and the area fields.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.