Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Table2: Dataset not in Edit or Insert mode

Posted on 2001-06-04
2
Medium Priority
?
1,391 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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

926 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