Table.Delete , Table.Edit / Table.Post
Posted: 03.08.2006, 21:19
Dear Friends.
I recently found that when doing a tZTable.Edit if the table had no unique fields the wrong records were updated.
If appears that the table.edit, is meant to edit the current record issues the SQL updat table where fields = values command and therein lies th eproblem.
If the table has two identical records the Table.Edit seems to get confused between them. I solved this by adding a keyed unique, auto increment field and if worked like a charm .
Any comments would be welcome and interesting.
Regards
Mparak
Durban
South Africa.
I recently found that when doing a tZTable.Edit if the table had no unique fields the wrong records were updated.
If appears that the table.edit, is meant to edit the current record issues the SQL updat table where fields = values command and therein lies th eproblem.
If the table has two identical records the Table.Edit seems to get confused between them. I solved this by adding a keyed unique, auto increment field and if worked like a charm .
Any comments would be welcome and interesting.
Regards
Mparak
Durban
South Africa.