Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DESPARATE !!! - Db Locking (PLEASE HELP)

Posted on 1997-10-23
3
Medium Priority
?
210 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 300 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

963 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