Within a subform, how do I access a field within the Main form and then use the value from that field to query a different table to obtain a value from another field?
For example, i am in the quote lines and i want to retrieve the salesperson code and then use that code to obtain the email address from the salesperson/purchaser table.
Any advice would be appreciated........
(Hopefully, it is as easy as ASP, SQL, VB etc)
0
Comments
In the mentioned example you don't have to, instead just get hold of the rec on the mainform like this:
Isn't that what you meant?
Peter
That certainly works for some of things I am working on.
Thanks for your help.
I will have to try to keep things simple!
David
The way to access a procedure/function on a subform is :
CurrForm.SubformName.FORM.ProcedureName;