An invalid lock type was passed to either rdoPreparedStatement.LockType or the locktype argument in rdoPreparedStatement.OpenResultset.or the rdoQuery.LockType or the locktype argument in rdoQuery.OpenResultset.
To avoid this error, make sure you pass one of the following valid lock types:
Note Not all lock types can be used on every data source.