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!

run code from subform

Status
Not open for further replies.

blarson0

Programmer
Jun 12, 2002
85
US
how can I run a some code on my form from a trigger on a subform? The form is named OP_10 and subform major_10, and the code on OP_10 I want to run is Form_KeyPress(KeyAscii As Integer).

Thanks for the help!

-Brad
 
What on the main form is triggering the code? Does it get triggered by entering a data into a field? If so, you can put the code on that field's AFTER UPDATE property pointing to the sub-form.

Jim "Get it right the first time, that's the main thing..." [wavey]
 
no, I want to cycle through different tabs when the space bar is pressed. When a text box on a subform has focus, the keypressed event for the main form will not trigger. I would like to have the keypressed event for the subform call the keypressed event for the main form.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top