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