Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DATABASE QUESTION

Posted on 1997-12-01
1
Medium Priority
?
148 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
[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
1 Comment
 
LVL 1

Accepted Solution

by:
jackb022197 earned 100 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

719 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