Access VBADiscuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have a main form with a subform for which the number of weeks field is filled in each time with the same amount as each new record is added.
I have created an unbound text box called weeks where the user will enter a figure, I would then like to be able to add this figure to the new record created on the subform.
I have tried using an on current event on the sub form:
dim vName as Variant
vName = Me.weeks
Forms!Sales_Subform!Number_of_Weeks = vName