I want to have an On Change event which sets an unbound field in the subform to be the equal to the result of a SQL Select query. What is the VBA code to say:
mndrlion is right. DLookup is almost certainly what you're after. You should not, however, normally need to set it in code. If you set the Control's Control Source Property to it that ought to be sufficient
Enjoy,
Tony
-------------------------------------------------------------------------------------------- We want to help you; help us to do it by reading this: Before you ask a question.
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.