Re: "Call ControlName_DblClick" -- does not work
- From: "Tom" <anonomys@xxxxxxxx>
- Date: Wed, 29 Jun 2005 20:03:38 -0400
Andrew:
Thanks for the prompt reply... not sure if I'm following you all the way...
quick recap:
a. control "Comment1" has "=ZoomBox(Screen.ActiveControl)" in its event
property (Double-click)
b. control "Frame1" has "=CallPopUp()" in its event property (double-click)
c. currently, when performing step a), the popup is opened
d. control in step a, however, must be executed by performing step b).
That'll allow me to hide the control Comment1.
I added the 2 lines (below) to the CallPopUp function. Now, when
performing step b) -- which should execute step a) -- I get the following
error message:
Compile Error. Sub or Function not defined. The line "Call
Comment1_DblClick" is highlighted.
What am I missing?
Tom
code modification... based on your suggestions:
....
....
Dim setcancel As Integer
Set ctl = Screen.ActiveControl
If Len(ctl.Name) = 6 Then
FieldName1 = "Comment" & Right(ctl.Name, 1)
MsgBox "Hello there 1"
Call Comment1_DblClick(setcancel)
....
....
"Andrew Backer" <awbacker@xxxxxxxxx> wrote in message
news:1120087919.799485.215630@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Well, first thing I would think of is to move the code out of the
> double click method and into it's own "Show Popup" function. Since
> it's called in more than one place, this is what you should do.
>
> I was able to get it work just fine by calling it like this :
>
> Dim setcancel As Integer
> Call LabelField_DblClick(setcancel)
>
> The double click stored prodcedure takes a integer cancel button, but
> you have to pass it too.
>
> Hope this helps,
> Andrew Backer
>
.
- Follow-Ups:
- Re: "Call ControlName_DblClick" -- does not work
- From: Carl Rapson
- Re: "Call ControlName_DblClick" -- does not work
- From: Andrew Backer
- Re: "Call ControlName_DblClick" -- does not work
- References:
- "Call ControlName_DblClick" -- does not work
- From: Tom
- Re: "Call ControlName_DblClick" -- does not work
- From: Andrew Backer
- "Call ControlName_DblClick" -- does not work
- Prev by Date: combo boxes
- Next by Date: Combining data from three fields on same tab/page in2 single
- Previous by thread: Re: "Call ControlName_DblClick" -- does not work
- Next by thread: Re: "Call ControlName_DblClick" -- does not work
- Index(es):
Relevant Pages
|