Solved

Sub forms

Posted on 1998-11-20
2
128 Views
Last Modified: 2010-05-03
How can I refer to a text box in my subform from my VB code in the parent form.

thank you
0
Comment
Question by:abidsml
2 Comments
 
LVL 1

Accepted Solution

by:
yfang earned 20 total points
ID: 1445976
Including the formname.  For excample: if your child form is frmChild and the textbox is text1.  You could change the text in the textbox into "test" using the code in the parent form in this way:

frmChild.text1.text="test"
0
 

Author Comment

by:abidsml
ID: 1445977
thank you
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now