I hope I can explain this scenario.
I have a customer mailing table from which I can add each customer to any one of 4 mailing lists via a logical checkbox in a grid.
Each section's selected customers can be added to the master send list and the selected customers from several sections can be added to the master send list (customer.shot).
There is an additional column of check boxes (customer.noshot) which, if checked, should not allow that particular record to be added to the send list. Once a checkbox in that row is checked, all the cells in that row of the grid are coloured red.
This is partially working, checking the 'noshot' checkbox turns the cells in the row red as required, using the 'gridcellcolour' method.
Now for the problem.
When a checkbox in the 'noshot' column is selected, the table needs to be updated and I thought that I could do it with
in either the forms refresh method or the checkbox's refresh method but adding that line stops the checkbox from being checked.
What am I missing here?
and am I making any sense?
Keith
I have a customer mailing table from which I can add each customer to any one of 4 mailing lists via a logical checkbox in a grid.
Each section's selected customers can be added to the master send list and the selected customers from several sections can be added to the master send list (customer.shot).
There is an additional column of check boxes (customer.noshot) which, if checked, should not allow that particular record to be added to the send list. Once a checkbox in that row is checked, all the cells in that row of the grid are coloured red.
This is partially working, checking the 'noshot' checkbox turns the cells in the row red as required, using the 'gridcellcolour' method.
Code:
-InteractiveChange-
count for len(alltrim(shot))>0 to shotz
thisform.gridcellcolour()
this.Value = this.Value
thisform.Grid1.Refresh()
Code:
-refresh-
count for ((len(alltrim(shot))>0) and (customer.noshot != .t.)) to shotz
Now for the problem.
When a checkbox in the 'noshot' column is selected, the table needs to be updated and I thought that I could do it with
Code:
UPDATE CUSTOMER SET SHOT='' WHERE NOSHOT=.T.
What am I missing here?
and am I making any sense?
Keith