Re: How to update a view with TAdoQuery
- From: "Ou Lanhui" <ouland@xxxxxxxxxxxxxx>
- Date: Tue, 13 May 2008 14:56:41 +0800
Sorry, the Products table need a primary key. I found the reason.
Thanks.
"Ou Lanhui" <ouland@xxxxxxxxxxxxxx> 写入消息 news:482934c3@xxxxxxxxxxxxxxxxxxxxxxxxx
I am now using Delphi 5. I have a question with TAdoQuery and Access..
I have two queries:
1. SELECT * ,LEFT(Qty, 6) AS Q1 FROM Products ORDER BY LEFT(Qty, 6),IdentNo DESC
2. SELECT * ,LEN(Qty) AS Q1 FROM Products ORDER BY LEN(Qty),IdentNo DESC
The Products table has a column named "Balance", this the field I will edit in a control linked with the TAdoQuery component.
When I call TAdoQuery.Next,
The first query with raise a "Row cannot be located for updating" error,
and the second query is ok.
My test, in Access, it's ok for both queries. I do want to know the reason.
Thanks for your help,
Ou Lanhui
- References:
- How to update a view with TAdoQuery
- From: Ou Lanhui
- How to update a view with TAdoQuery
- Prev by Date: How to update a view with TAdoQuery
- Next by Date: How do I work with Recordset in ExecuteComplete event?
- Previous by thread: How to update a view with TAdoQuery
- Next by thread: How do I work with Recordset in ExecuteComplete event?
- Index(es):
Relevant Pages
|