Solved

DESPARATE !!! - Db Locking (PLEASE HELP)

Posted on 1997-10-23
3
206 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
[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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb download file link ? 1 167
Working with hours 3 72
select query - oracle 16 101
Tvertscrollbox like a whatsapp layout 5 50
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

756 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