Solved

Table2: Dataset not in Edit or Insert mode

Posted on 2001-06-04
2
1,383 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:Mohammed Nasman
ID: 6151857
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:
Mohammed Nasman earned 50 total points
ID: 6151867
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

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…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

810 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