Dennisk
AWF VIP
- Local time
- Today, 04:27
- Joined
- Jul 22, 2004
- Messages
- 1,649
greeting,
I am doing some investigation into converting a single user booking system into a multiuser database (Access 2000). I am developing a module to use a Session Lock Table where a date will be entered into the session lock table and from then on no one else can insert another record for that date. For my first test I have set the date field to unique and wish to trap the referential integrity error which results if another user tries to insert the same key. As part of this investigation I am using ADO. But the ADO help system is either out of date or I am going up the wrong path.
the ADO help system says it a provider returns -2147467259
however all I get back is -2147217887
Is it possible to trap RI errors using the errorObject.NativeError method. Or should I revert back to DAO.
I am doing some investigation into converting a single user booking system into a multiuser database (Access 2000). I am developing a module to use a Session Lock Table where a date will be entered into the session lock table and from then on no one else can insert another record for that date. For my first test I have set the date field to unique and wish to trap the referential integrity error which results if another user tries to insert the same key. As part of this investigation I am using ADO. But the ADO help system is either out of date or I am going up the wrong path.
the ADO help system says it a provider returns -2147467259
however all I get back is -2147217887
Is it possible to trap RI errors using the errorObject.NativeError method. Or should I revert back to DAO.