fredzeppelin
Technical User
1. Have an Access form with several controls with custom 'on-event' code. One procedure was tied to the 'Lost Focus' event on a ComboBox. I wasn't happy with the usability of that and tried to link the procedure to a different event on the same control/form.
I now receive this message.
"The expression OnClick (or any event) you entered as the event property setting produced the following error: Procedure declaration does not match description of event or procedure having the same name."
I've cut and pasted proc's all over the form's code module to different
Private Sub btnDoThis_Click()
End Sub
procedures. I've deleted the event procedure references in the control properties. I've deleted the code. What I haven't done is start from scratch, there's a really gnarly procedure with 5 subforms, etc. running in there. (It's ugly, I inherited it).
I found a ref to this error in another thread, but that thread boiled down to conditional formatting, the error just sort of disappeared from the thread.
2. I guess the general question is are there any gotcha's with code linked to control events, and how do you change your mind after testing them.
3. What's the best way to make something happen after mouse-clicking a selection from a rowsource bound combo box?
with eternal gratitude, I'm off to search some more .....brad
I now receive this message.
"The expression OnClick (or any event) you entered as the event property setting produced the following error: Procedure declaration does not match description of event or procedure having the same name."
I've cut and pasted proc's all over the form's code module to different
Private Sub btnDoThis_Click()
End Sub
procedures. I've deleted the event procedure references in the control properties. I've deleted the code. What I haven't done is start from scratch, there's a really gnarly procedure with 5 subforms, etc. running in there. (It's ugly, I inherited it).
I found a ref to this error in another thread, but that thread boiled down to conditional formatting, the error just sort of disappeared from the thread.
2. I guess the general question is are there any gotcha's with code linked to control events, and how do you change your mind after testing them.
3. What's the best way to make something happen after mouse-clicking a selection from a rowsource bound combo box?
with eternal gratitude, I'm off to search some more .....brad