Snowflake68
Registered User.
- Local time
- Today, 14:57
- Joined
- May 28, 2014
- Messages
- 452
I have a text box on a form with a OnClick event that opens a form using a where condition.
If the user double clicks instead of single click they get the error "This action can't be carried out while processing a form or report event"
How can I prevent the Error 2585 if a user double clicks?
I have tried to set the double click event to Cancel = True but this does not stop the error.
I have also added a error handler to the OnClick event to StopAllMacros (yes its a macro so I should change this to VBA) but that is not trapping the error either.
If the user double clicks instead of single click they get the error "This action can't be carried out while processing a form or report event"
How can I prevent the Error 2585 if a user double clicks?
I have tried to set the double click event to Cancel = True but this does not stop the error.
Code:
Private Sub txtCustomerPriceGroup_DblClick(Cancel As Integer)
Cancel = True
End Sub
I have also added a error handler to the OnClick event to StopAllMacros (yes its a macro so I should change this to VBA) but that is not trapping the error either.