Hi,
I am using a single-file query with the hModifyFile parameter on a Hyperfile Classic file. This query shows the employees of one department. On a window I have a table linked to the query and a form on an internal window, also linked to the query. Selecting a line in the table does a FileToScreen to update the display in the form.
I modify a record using the form and use
- ScreenToFile(win_MyWindow,qry_MyQuery)
- hModify(qry_MyQuery) //+error processing
- TableDisplay(Table,taCurrentRecord)
First time I modify a record everything goes as expected, modifications are reflected in the table, the query and the datafile.
Now if I select another line in the table and modify the form, nothing happens. No hError either.
If I exit the window, reopen it and select and modify the same record it
IS modified.
So each time
only one modification is processed. (same goes for adding a record)
If I trace the file buffer, (qry_MyQuery.MyItem) the correct values are there just before the hModify is called. Re-executing the query has no effect (I want to avoid it anyway).
What am I missing :confused:
Regards,
Piet
Edited 1 time(s). Last edit at 04/26/2009 11:00AM by Piet van Zanten.