?
Solved

ADO Insert Problem

Posted on 2000-04-08
3
Medium Priority
?
157 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
[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

Expert Comment

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

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

Accepted Solution

by:
chengjian earned 300 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month12 days, 5 hours left to enroll

752 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