Solved

DATABASE QUESTION

Posted on 1997-12-01
1
129 Views
Last Modified: 2010-04-04
HAVING PROBLEM WITH KEEPING INFORMATION POSTED TO THE TABLES
WHEN I SHUT OFF MY SYSTEM NEW RECORDS ARE LOST ON ONLY ONE TABLE.
WHAT AM I MISSING? WILL STORE TO ONE BUT NOT THE OTHER. HOW DO YOU SET UP CODE AND/OR TABLES TO STORE THE INFORMATION PROPERLY TO THE DATABASE.  
0
Comment
Question by:BBENDALL
1 Comment
 
LVL 1

Accepted Solution

by:
jackb022197 earned 50 total points
ID: 1352572
In the AfterPost method of your tables add
  DbiSaveChanges(Table1.Handle)
to flush all (cached) changes directly to disk.
Dbi functions are in the BDE unit, so you need to add BDE to the uses clause.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

861 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

21 Experts available now in Live!

Get 1:1 Help Now