Dude seriously use google, when you get a compile error you can't fix you google, in your case I googled:
delphi Dataset not in edit or Insert Mode
and got:
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_20998091.html
It says you need a account but just scroll right to the bottom of the page and you'll see some comments pasted there, it was a solution for the guy who had a similar problem.
EDIT: Also the database FarligOpptreden posted is solid so if you haven't got a good database already you should use that one, to get the Primary Key of the last inserted row you can simply execute a SELECT @@IDENTITY scalar query on the database.
delphi Dataset not in edit or Insert Mode
and got:
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_20998091.html
It says you need a account but just scroll right to the bottom of the page and you'll see some comments pasted there, it was a solution for the guy who had a similar problem.
EDIT: Also the database FarligOpptreden posted is solid so if you haven't got a good database already you should use that one, to get the Primary Key of the last inserted row you can simply execute a SELECT @@IDENTITY scalar query on the database.
Last edited: