I have a main form with a continuous subform on it. I need to pull the value from a control on the main form and use it as a default value in a control on the subform.
Please excuse my ignorance. I am new at this. Where would I put this line of code? Under an event? Under the default value of the control on the subform?
You need to put it in a suitable event which will 'fire' at a time to do waht you want it to do
I would suggest, without knowing exactly what you are doing it a suitable event may be in the before insert event of the sub form, or maybe the oncurrent event
if you are new to Access/VBA it is perhaps worth mentioning that it is also possible to refrence subform controls from the main form, this is achieved with syntax like so:
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.