Solved

adLockReadOnly

Posted on 2001-08-05
3
540 Views
Last Modified: 2006-11-17
Hi Experts,

A Text box is bound to an ADODC, the ADODC's LockType=adLockReadOnly.
In run time, when edit the text in the Text box and then tried to move to next record, an error message appeared and the record was restored automatically. Ok, fine. But since then, I just cannot move to other records.
What I should do so that after ADODC gives an error message and restores the record, users can continue move to other record?
0
Comment
Question by:johnwood
3 Comments
 
LVL 3

Expert Comment

by:andysalih
ID: 6353914
what was the error message ?

Andy

0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6354320
set the adStatus parameter to adStatusCancel in the WillMove event.
0
 
LVL 9

Accepted Solution

by:
Valliappan AN earned 50 total points
ID: 6354900
May be your cursor type is adOpenForwardOnly. Try setting it to adOpenStatic or adOpenKeySet.

Hope this helps.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question