Solved

adLockReadOnly

Posted on 2001-08-05
3
534 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 69

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now