View Single Post
  #2  
Old March 28th, 2010, 02:33 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default Control Form form a Sub Form

"TonyAntique" u59027@uwe wrote in message news:a5a6118d13dbf@uwe...
How do I activate a command button on the main form when I double click
on the sub form?


The code would be like this:
Me.Parent!Command99.Enabled = True

But you'll need to define "double-click on the subform" more precisely. It's
probably the dblClick event of the subform's Detail section you want to use.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.