thisform.grid1.RecordSource='csxxtmp'
thisform.grid1.column1.ControlSource='csxxtmp.sfxz' &&逻辑字段
thisform.grid1.column2.ControlSource='csxxtmp.xxdm'
thisform.grid1.column3.ControlSource='csxxtmp.xxmc'
thisform.grid1.SetAll("dynamicforecolor", ;
"IIF(csxxtmp.sfxz, RGB(255,255,255), RGB(0,0,0))", "column")
thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(csxxtmp.sfxz, RGB(0,128,128), RGB(255,255,255))", "column")
thisform.text2.Value=RECCOUNT('csxxtmp')
[此贴子已经被作者于2019-5-22 11:09编辑过]