I’m using VFP 8 sp 1 on Windows 2000 pro.
I have a database and a table within the DBC with the following structure:
cost N(4,2)
price N(4,2)
profit N(4,2)
since profit is price minus cost, I’d like to automatically update the field profit whenever cost or price change. I’ve tried using triggers insert and update with stored procedures, but when I try and replace profit with some value, I get the error “Cannot update the cursor <filename> since it is read only”
What am I missing? Is there a way to do this?
I have a database and a table within the DBC with the following structure:
cost N(4,2)
price N(4,2)
profit N(4,2)
since profit is price minus cost, I’d like to automatically update the field profit whenever cost or price change. I’ve tried using triggers insert and update with stored procedures, but when I try and replace profit with some value, I get the error “Cannot update the cursor <filename> since it is read only”
What am I missing? Is there a way to do this?