Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DESPARATE !!! - Db Locking (PLEASE HELP)

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

688 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