Advertisement

05.21.2004 at 12:52PM PDT, ID: 20998091
[x]
Attachment Details

Dataset not in edit or Insert Mode

Asked by jarty67 in Delphi Programming

Tags: insert, edit

Hi Experts,

I have a master detail form, the table are connected in ms sql with cascade update deletes... I wan't the form to open on a new record...

I have the following code in my form

AdoDatsetMaster.Append;

If there are no records in the master table it works fine and adds a new record so the user can create a new invoice, but if there are records in the master table I get the following error "Dataset not in edit or in insert mode"... I ahe tried  AdoDatsetMaster.edit and AdoDatsetMaster.insert but I get the same error....and same result

If I click on ok and press f9, it keeps going and a new record is added...

Why do I get this error ??

Thanks in advance
Start Free Trial
[+][-]05.21.2004 at 11:18PM PDT, ID: 11132125

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.22.2004 at 06:57AM PDT, ID: 11132941

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.22.2004 at 09:00AM PDT, ID: 11133547

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.22.2004 at 09:41AM PDT, ID: 11133736

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.23.2004 at 12:52AM PDT, ID: 11136619

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Delphi Programming
Tags: insert, edit
Sign Up Now!
Solution Provided By: esoftbg
Participating Experts: 4
Solution Grade: A
 
 
[+][-]05.23.2004 at 07:22AM PDT, ID: 11137665

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.24.2004 at 04:35AM PDT, ID: 11141994

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.24.2004 at 06:50AM PDT, ID: 11142940

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.24.2004 at 09:46AM PDT, ID: 11144588

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32