Solved

DESPARATE !!! - Db Locking (PLEASE HELP)

Posted on 1997-10-23
3
196 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Secure Boot on W8 & 8.1 8 44
Convert Jpg /PNG To GIF 5 101
Newbie Thread Programming 1 116
FMX enumerated colours 2 68
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…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 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

8 Experts available now in Live!

Get 1:1 Help Now