Solved

ADO Insert Problem

Posted on 2000-04-08
3
153 Views
Last Modified: 2010-04-04
I am using D5 with an ADOConnection and an ADOTable on an indexed Access2000 table. Everything works great until I insert a record. Physically, the inserted record is added to the end of the dataset and it stays there until I close and then reopen the ADOTable. After it is reopened, the inserted record appears in its expected position.

Question: Do I have to close and reopen the table to reset the index or is there a better (faster) way to make inserted record appear in their proper positions?
0
Comment
Question by:MWilson
3 Comments
 
LVL 7

Expert Comment

by:Motaz
ID: 2697315
Try to use ADOTable1.Refresh;

//I'm not sure :-)
Motaz
0
 
LVL 1

Accepted Solution

by:
chengjian earned 100 total points
ID: 2697465
Motaz:
In my experence, it shouldn't work:(
I always re-open to solve such a problem. try to find a patch in borland and install it perhaps it solves the problem and there's another unoffical patch you could find at torry's site
0
 

Author Comment

by:MWilson
ID: 2702758
To Motaz: Thank you, but the Refresh method takes an inordinate amount of time. It does work, but it takes way too much time (over two minutes) compared to setting the Active property first to FALSE, then to TRUE (about 10-15 seconds).

To Chengjian: Thank you. I will try your upgrade/patch suggestion tomorrow.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ddeman not working in activex 3 103
FMX StringGrid1->Canvas->FillRect Problem 3 151
Create a path if not exists 7 77
Delphi problems to abort a printjob 9 19
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

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