Re: "Call ControlName_DblClick" -- does not work

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
>


.



Relevant Pages

  • Re: wuauclt.exe popup
    ... there is no crash only a popup that came back constantly. ... Please post the exact error message as seen on the screen. ... Microsoft MVP [Windows Desktop Experience] ...
    (microsoft.public.windowsxp.help_and_support)
  • How to disable :"File system delayed write failed" error message
    ... i am looking for a way to disable the error message when i am ... Application popup: Windows - Delayed Write Failed: Windows was unable ... as we do not log on the console every ...
    (microsoft.public.windows.server.general)
  • Re: Problem with popup form on a single record
    ... between the two screens there would be a problem. ... If you open the popup form with an acDialog argument, ... This will stop the error message. ... the forn's property sheet. ...
    (microsoft.public.access.forms)
  • RE: Duplicate computer name?
    ... Is the original computer account being "overwritten" with the new ... the system will popup the error message with "Access ... the Active Directory database. ... If you did this with domain admin's credential, the system won't popup the ...
    (microsoft.public.windows.server.active_directory)
  • RE: Duplicate computer name?
    ... Is the original computer account being "overwritten" with the new ... the system will popup the error message with "Access ... the Active Directory database. ... If you did this with domain admin's credential, the system won't popup the ...
    (microsoft.public.windows.server.active_directory)