RE: Calling Click Event from another Event

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



Okay, I used the same type of code within the same form (not referencing VBA
code in a different form) and I was able to call the applicable
"commandXXX_click" sub routine. So, I am guessing that I am referencing the
child form incorrectly from within the previous code. I am trying to
activate the click event of a command button on a child form. Any ideas?

"GB" wrote:

I have a form that has a child form. From the child form, I populate a list
of information in the parent form by clicking on a command button. I also
have a command button on the child form that will remove the first (top) item
in the list when clicked.

What I am trying to do is write something that when an item is double
clicked in the list, say the 3rd item, that the commands of the remove button
are executed.

Currently I have tried the following:

Private Sub OpList_DblClick(Cancel As Integer)
Dim I As Long
Dim DeleteTo As Long

DeleteTo = OpList.ListIndex

For I = 0 To DeleteTo
[NextOperation_subform]!btnRmvOp.Click
Next I
End Sub

I have made the btnRmvOp_Click procedure public. I also have tried
modifying the !btnRmvOp.Click portion to state btnRmvOp_Click.

I haven't tried it yet, but I also wanted to make it possible to double
click on a list on the child form and call the click event for a button
located on that child form. I'm wondering if in the above code I'm
referencing the child form incorrectly from the parent form.

Please help.
.



Relevant Pages

  • Re: Calling Click Event from another Event
    ... of information in the parent form by clicking on a command button. ... have a command button on the child form that will remove the first ... Dim DeleteTo As Long ...
    (microsoft.public.access.modulesdaovba)
  • Re: Calling Click Event from another Event
    ... of information in the parent form by clicking on a command button. ... have a command button on the child form that will remove the first item ... Dim DeleteTo As Long ...
    (microsoft.public.access.modulesdaovba)
  • RE: Calling Click Event from another Event
    ... But I'm wondering what you are try to accomplish here. ... of information in the parent form by clicking on a command button. ... have a command button on the child form that will remove the first item ... Dim DeleteTo As Long ...
    (microsoft.public.access.modulesdaovba)
  • Calling Click Event from another Event
    ... I have a form that has a child form. ... of information in the parent form by clicking on a command button. ... Dim DeleteTo As Long ...
    (microsoft.public.access.modulesdaovba)
  • [ANN] XMLmind XML Editor 3.2.0 : support DITA
    ... In order to support DITA simply and elegantly, ... It is now possible to bind a command to the ... Referencing Document now properly refreshes ... CSS support: it is no longer necessary to ...
    (comp.text.xml)