Christine Pearc
Christine
- Local time
- Today, 01:03
- Joined
- May 13, 2004
- Messages
- 111
Help! My On Click and On Dbl Click events are not behaving! All my command buttons have On Click events, none of them have any code for On Double Click. However, if a user double-clicks by mistake, SOME of the code associated with the On Click event runs, but not all of it.
Here's a sample On Click event (error events removed):
Now, here's the weird part. If the user double-clicks instead of just clicking, the "DoCmd.OpenForm "Respond Search frm" part of the OnClick code runs, THEN "There are no open CARs" message box appears"!!!
As a test, I added code to the On Double Click event to make a message box appear, but it doesn't: the weird stuff happens. I've tried to step through the code with a watch on the double-click event but it is bypassed like it didn't happen.
Can someone urgently advise??
Christine
Here's a sample On Click event (error events removed):
Code:
Private Sub cmdRespond_Click()
If DCount("[CARNum]", "qryRespondSearch") <> 0 Then
DoCmd.OpenForm "Respond Search frm", acNormal
Else
MsgBox "There are no open CARs.", vbInformation, "No Data"
End If
End Sub
Now, here's the weird part. If the user double-clicks instead of just clicking, the "DoCmd.OpenForm "Respond Search frm" part of the OnClick code runs, THEN "There are no open CARs" message box appears"!!!
As a test, I added code to the On Double Click event to make a message box appear, but it doesn't: the weird stuff happens. I've tried to step through the code with a watch on the double-click event but it is bypassed like it didn't happen.
Can someone urgently advise??
Christine