Solved

Table2: Dataset not in Edit or Insert mode

Posted on 2001-06-04
2
1,377 Views
Last Modified: 2008-02-26
I get this error message:
Table2: Dataset not in Edit or Insert mode.

How do I work it around.

Blash

0
Comment
Question by:blash
  • 2
2 Comments
 
LVL 22

Expert Comment

by:mnasman
Comment Utility
Hello

  That's you are trying to call post method for the table, but u didn't add new record or modify record
you need to call append or edit befor post

 Table2.Edit;
 Table2['CustNo'] := 99;
 Table2.Post;

  but if you didn't call edit, it will give you the error message that u wrote

Best regards
Mohammed Nasman
0
 
LVL 22

Accepted Solution

by:
mnasman earned 50 total points
Comment Utility
Hello again

   for better way to get rid of this problem, always check about the table state before you call post method

  if Table2.State in [dsInsert,dsEdit] then
    Table2.Post;

Mohammed Nasman
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

16 Experts available now in Live!

Get 1:1 Help Now