Suppressing messages 
Author Message
 Suppressing messages
Hi

How do I suppress messages such as 'Action is cancelled'?  This message
occurs when I use the Cancel = True statement in response to be BeforeUpdate
event.

Rgs
Martin



Sun, 18 Apr 2004 08:43:06 GMT
 Suppressing messages

Hi Martin,

You can catch the error in DataGrid's Error event and hanlde it by setting
Reponse to 0. For example:

Private Sub DataGrid1_Error(ByVal DataError As Integer, Response As Integer)

If DataError = 7011 Then

    Response = 0

End If

End Sub

Luke

(This posting is provided "AS IS" with no warranties, and confers no
rights. You assume all risk for your use. Copy Right, 2001 Microsoft
Corporation. All rights reserved.)



Sun, 18 Apr 2004 10:37:10 GMT
 Suppressing messages
Hi Luke

Thanks for that, and well observed that I am experimenting with DataGrid!

Rgs
Martin


Quote:
> Hi Martin,

> You can catch the error in DataGrid's Error event and hanlde it by setting
> Reponse to 0. For example:

> Private Sub DataGrid1_Error(ByVal DataError As Integer, Response As
Integer)

> If DataError = 7011 Then

>     Response = 0

> End If

> End Sub

> Luke

> (This posting is provided "AS IS" with no warranties, and confers no
> rights. You assume all risk for your use. Copy Right, 2001 Microsoft
> Corporation. All rights reserved.)



Sun, 18 Apr 2004 15:21:34 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. Universe - how to suppress message from PHANTOM....

2. How to suppress messages

3. suppress message from stored proc

4. Suppress messages from Stored Procedures

5. Suppressing Message

6. how to SUPPRESS messages?

7. Suppressing Messages

8. Suppress Info-message 5701 from MS-SQL SQL_SUCCESS_WITH_INFO

9. DTS: Suppressing task failed messages

10. Error Handling (Suppressing Server Messages)

11. Suppress information message

12. Suppressing warning messages


 
Powered by phpBB® Forum Software