HELP !!! Database Error Handling in VB 
Author Message
 HELP !!! Database Error Handling in VB

Hello All,

    Can you please help to do database error handling code

to trap errors like duplicate key , Stored procedure not
found errors .error number like 2601,2812.

  thanks
  Suresh.



Sat, 07 Aug 2004 06:29:17 GMT  
 HELP !!! Database Error Handling in VB
You handle the error like this:

On Error GoTo errhandler

'
' Add your database code here.
'

Exit Sub

errhandler:

Select Case Err.Number

    Case 2601

    ' Code for error 2601

    Case 2812

    'Code for error 2812

End Select

Luke

(This posting is provided "AS IS", with no warranties, and confers no
rights.)



Sun, 08 Aug 2004 09:24:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help...VB Error Handling

2. Help: Error handling for VB component in VC

3. Help, Error handling errors

4. Error handling and Database Transactions

5. RDO Error Handling -howto? (example: database falls)

6. database connection error handling

7. Error handling and Database Transactions

8. Error handling and Database Transactions

9. RDO Error Handling -howto? (example: database falls)

10. VB5 DataBase Apps & Error Handling

11. Error handling and Database Transactions

12. Handling error due to table not found in Access database

 

 
Powered by phpBB® Forum Software