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
Solved

DESPARATE !!! - Db Locking (PLEASE HELP)

Posted on 1997-10-23
3
205 Views
Last Modified: 2010-04-04
Hello

I have a serious problem.

My application has multiple screens. A sub-screen inputs
data into a database using Ttable components and SQLQueries all linked to each other. Calculations are also done and the results are also entered into the databas.

Another screen calls a report that reads the data from the same table that was enterd into previously.

I run my application and go down to the input screen and update the tables referred to previously.  then I exit from that screen and go to the reports screen. When I run the report it does not include the updated data that I had entered just a moment ago but insted gives me the old data that was in the table.

If I terminate my application and re-run it going straight to the the report screen and execute the report THEN only does the report contain the updated data .  I repeat the process of entering the data and calling the report and the same problem occurs .

What is going on here?
Why does the report not give me the data that I had just updated while the program is running.
Why does the application have to be terminated and re-run for the report to contain the updated data.

Posted 97/10/23  at 2:25am GMT.

Please answer as soon as Possible ....I am Desparate!!

Swift JUSTICE
0
Comment
Question by:swift
  • 2
3 Comments
 

Accepted Solution

by:
MAXcom earned 100 total points
ID: 1348754
Hi,
Sound like you need to close the database then open it back up.
That would solve the problem of the missing data.
MAXcom
0
 

Author Comment

by:swift
ID: 1348755
Hello again ....

I do not understand... please explain exactly what I have to do ...
I have tried all that I could think of doing.

If there is any code please give an example

Swift JUSTICE
0
 

Expert Comment

by:MAXcom
ID: 1348756
Try this:
Datebase1.close;
Database1.open;

That closes the database, then opens it so it rereads all the data in the database thus you should have all the updated info.

Hope that helps,
MAXcom

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

839 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