Solved

ADO Insert Problem

Posted on 2000-04-08
3
151 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

16 Experts available now in Live!

Get 1:1 Help Now