I'm using VFP to connect to a MS SQL table (tblMain). The SQL table contains a Calculated/Derived field based upon another field in the table. There is a SQL view on tblMain called Main. When records are added or edited in the SQL Query Analyzer they go in without error.
Now for the problem. There is a VFP Remote view (main) based on the SQL View (Main). The VFP view clearly has the derived field marked as not being updatable, and VFP is set to send SQL updates for modified and updateable fields only. When a record is edited in VFP it flows thru to the SQL view and tables without error. When a record is added in VFP, however, I get the following message:
What am I doing wrong?
Steve
Now for the problem. There is a VFP Remote view (main) based on the SQL View (Main). The VFP view clearly has the derived field marked as not being updatable, and VFP is set to send SQL updates for modified and updateable fields only. When a record is edited in VFP it flows thru to the SQL view and tables without error. When a record is added in VFP, however, I get the following message:
Connectivity error: Microsoft - ODBC SQL Server Driver - SQL Server - Update or insert of view or function 'main' failed because it contains a derived or constant field.
What am I doing wrong?
Steve