How do I insert data into a Textbox within a subform using VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The code below doesn't work out:

Forms!"Name of Main Form!Name of Subform!Name of Textbox= Value

Could you tell me the correct way of inserting data into a textbox in a
subform?

Thanks!
 
I'm assuming the quote is a typo mistake! Name Of Subform should be Name Of
Subform Control. Open the main form in design view, select the subform
control, open properties, go to the Other tab and see what the Name is. Use
that for Name Of Subform Control.
 
Back
Top