Solved

Delphi won't refresh query

Posted on 1997-09-17
1
1,195 Views
Last Modified: 2008-03-17
I have a query shown by a DBGrid on a PageControl and the Grid won't refresh after updating on of the files. I have RequestLive=True and tried the methods query.refresh,dbgrid.refresh,pagecontrol.refresh and form.refresh what else is there to try?
0
Comment
Question by:lizzzard
1 Comment
 

Accepted Solution

by:
boabyte earned 50 total points
ID: 1345382
One way to be completely sure a TQuery updates is to close then open it again. eg:

...
Query1.Close;
Query1.Open;
...

Takes a bit of time but might be your only solution
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

20 Experts available now in Live!

Get 1:1 Help Now