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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command button in subform

Status
Not open for further replies.

FoxStudent

Technical User
Feb 24, 2000
85
GB
I am trying to right some code behind a command button in a subform. However, I can not find any mention of the command form in the list of objects for either the form or subform in VBA. What should i do? Is it because the command button is part of a continuous form?

Thank u
 
I'm not sure what you are asking. If you want to write code behind an object, right click on the object, select Properties, choose the Event tab and click on the event you want to write code for. You probably want to use the Click event. Click in the field next to On Click and click on the button with the three periods, and choose Code builder.

That will take you into the code behind the form.

Hope that helps.

Kathryn


 
When you open the main form in design view, you will see a white space that says it is the subform. You need to double click on that white space to see the subform in design view. Then you should be able to see the control and go to it's event procedures through the properties dialog box, on the events tab. Michelle Fulton

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top