A
alex
Hello,
Using Access '03...
Is there a way to respond to the DoubleClick of ANY control on a form?
I thought this code might work, but no:
Private Sub Form_DblClick(Cancel As Integer)
'open Zoom box if user double clicks
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Then
DoCmd.RunCommand acCmdZoomBox
End If
Next ctl
End Sub
It does work in the individual on DoubleClick event. But if you have
10 controls, it seems silly to write the code 10 times.
Thanks,
alex
Using Access '03...
Is there a way to respond to the DoubleClick of ANY control on a form?
I thought this code might work, but no:
Private Sub Form_DblClick(Cancel As Integer)
'open Zoom box if user double clicks
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Then
DoCmd.RunCommand acCmdZoomBox
End If
Next ctl
End Sub
It does work in the individual on DoubleClick event. But if you have
10 controls, it seems silly to write the code 10 times.
Thanks,
alex