Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referring to controls on another form

Status
Not open for further replies.

awhitsel

Programmer
Feb 22, 2001
80
US
I would like to know how to referring to controls on another form.

For example, I want to refer to a command button on another form to determine the sort order of a continuous form.

 
Hi!

I don't know if you can get the information you want from the command button but the syntax you are looking for is:

Forms!YourForm.Controls("YourControl")

Of course the form must be open before any reference to it will work.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top