?
Solved

dbnavigator question

Posted on 2003-03-17
3
Medium Priority
?
471 Views
Last Modified: 2011-09-20
using tquery and set requestlive to true.
click dbnavigator insert button and input new record data.
post it . but the new record position is not the last.
why?
and click refresh button.
it has 'table is not supported this operation because it is not uniquely indexed'exception
who can solve this problem?
thanks.
0
Comment
Question by:fatchoi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
Motaz earned 100 total points
ID: 8157183
Use Query1.Append; because + button means Query1.Insert; which inserts new record in current location. So that drop new button and write this code on it:

Query1.Append;

The exception that occures with refresh means that you should make primary key for your table.

Refresh is used when many instances of datasets are updating current table.

Motaz
0
 
LVL 1

Author Comment

by:fatchoi
ID: 8163508
i means the position is not after the current record when using append.and not before the current record when using insert.
and i already set the id field to primary.
but the same error occurs.
thanks.
0
 

Expert Comment

by:CleanupPing
ID: 9316736
fatchoi:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

770 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