I have a spec that calls for a grid with a command button in one column. The color of the button needs to vary with certain conditions. I have tried making fields in the recordsource cursor that contain desired fore- and background colors and then setting the backcolor property for the button to "=curSrc.BackColor" and likewise for the forecolor property. I am able to get a desired initial color (same for all records), but when I use the normal method to change cursor values, nothing happens. By normal, I mean:
lcSavSrc = form.pgf.page1.grid.recordsource
form.pgf.page1.grid.recordsource = ''
REPLACE curSrc.BackColor WITH 255
form.pgf.page1.grid.recordsource = lcSavSrc
Can you suggest a solution?
Thanks, Dick![[bigears] [bigears] [bigears]](/data/assets/smilies/bigears.gif)
lcSavSrc = form.pgf.page1.grid.recordsource
form.pgf.page1.grid.recordsource = ''
REPLACE curSrc.BackColor WITH 255
form.pgf.page1.grid.recordsource = lcSavSrc
Can you suggest a solution?
Thanks, Dick
![[bigears] [bigears] [bigears]](/data/assets/smilies/bigears.gif)