AndrewMozley
Programmer
I have a form which allows data entry into a grid mygrid, which causes records to be added into a cursor tDetail (which is the RowSource of the grid). So the fields in cursor tdetail are updated as the cells of mygrid are filled, and for each new row of mygrid I APPEND a record to the cursor.
This works fine, and at the end I use the records in the cursor to add and update records in several tables.
However, still in the same form, I would like to go back and let the user enter another transaction.
I realise that I cannot ZAP the records in tDetail, so I re-create this cursor. This is not good news for the grid, so I then re-define the Rowsource for the grid and redefine the header1.caption of each column, which has also been cleared.
Unfortunately I find that the mygrid.Column2.valid() is being cleared – anyway this method is no longer being invoked.
Is there a way that I can preserve the methods of the columns of the grid, even though these columns have had to be re-defined? Or am I going about this the wrong way?
Thanks. Andrew