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

L

Laron

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!
 
P

PC Datasheet

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top