How to trap events on subform

J

Jeff

Hi,
have a main form and a subform. I'd like to perform some computation
when some events (e.g. keypress, lost focus, ..etc) are triggered on the
subform. I realize that the subform only has onenter and onExit events. is
possible to trap other events (keypress/lostfocus) work if i launches the
subform independently. please help.
 
B

Baby Face Lee

Hi Jeff
Subforms have a full range of events available. What you're seeing are the
two events that apply between the subform and the main form.
When you have the main form open in design view, click on the subform once
to select it and then double-click on the small square in the top-left corner
of the subform to view the properties. You'll see all manner of events are
listed.

Hope this helps,

Lee
 
J

Jeff

Lee,
Thanks for ur response, but there is no small square on the upper left
corner on the subform. The subform looks a bit different (there is no
controls displayed for some reason, and it only shows the name of the table -
table.tblbatchdetails - the rest of the subform is grey out).

Thanks,
 
B

Baby Face Lee

mmm, this is odd!! Would you mind sending me a screenshot of what you see?
My address is [email protected].
(To take a screenshot, bring the form/subform up in design view, press Alt
plus Print Screen - this will copy the screen to the clipboard - and then
paste the image into a word document)

Regards,

Lee
 
Top