-**** Posted from RemarQ, http://www.remarq.com/?b ****-
Real Discussions for Real People
typing frm-40509 into the help|search, I got:
FRM-40509: ORACLE error: unable to UPDATE record.
I've seen this when required table fields are not being updated.
So if a form control has it's database item property set to false,
and the item is required for the underlying table, you'll get this
error.
Overall, this would exhibit itself when
the block is a database block
an insert is attempted
record fields required for insert are not available
or,
an insert or update is attempted
the underlying data violates a constraint
(table: duplicate records, or index constraint violation)
To resolve:
insert message statements to see all fields being updated or
inserted;
Verify these fields have Database Item property set to YES;
Try to update the table with SQL-PLUS (or Access);
Isolate any problems found (note: Access will give you a
(decent -odbc- error message as to why the update failed)
code example:
MESSAGE('field1='||:BLOCK.FIELD1||' field2='||:BLOCK.FIELD2);
If you can update the record with SQLPLUS, then it's likely
a required field is not set to be a Database Item.
If you can't update the record with SQLPLUS, then you've likely
got a table or index violation (check table and index creation
scripts for constraints)
Good Luck, Rich
Sent via Deja.com http://www.deja.com/
Before you buy.