Sytze,

Anticipating that you have different controlsources for your columns, then
you'll need more than 1 instruction to set dynamicbackcolors and can't use
SETALL without getting real convoluted.

Going back to an example that uses icase ... it does show a sequence of
column dynamicbackcolor settings (replace ICASE's with the working IIF and
names of fields being checked for each column involved)

Thisform.Grid1.Columns(1).DynamicBackColor = ;
        "ICASE(LEFT(gridjobs.sun,2) = 'AT', &rgb_at, " + ;
        "left(gridjobs.sun,2) = 'AM', &rgb_am, " + ;
        "left(gridjobs.sun,2) = 'PM', &rgb_pm, RGB(255,255,255))"       

* Monday
Thisform.Grid1.Columns(2).DynamicBackColor = ;
        "ICASE(LEFT(gridjobs.mon,2) = 'AT', &rgb_at, " + ;
        "left(gridjobs.mon,2) = 'AM', &rgb_am, " + ;
        "left(gridjobs.mon,2) = 'PM', &rgb_pm, " + ;
        "RGB(255,255,255))"     

* Tuesday
Thisform.Grid1.Columns(3).DynamicBackColor = ;
        "ICASE(LEFT(gridjobs.tue,2) = 'AT', &rgb_at, " + ;
        "left(gridjobs.tue,2) = 'AM', &rgb_am, " + ;
        "left(gridjobs.tue,2) = 'PM', &rgb_pm, " + ;
        "RGB(255,255,255))"     

* Wed
Thisform.Grid1.Columns(4).DynamicBackColor = ;
  "ICASE(LEFT(gridjobs.wed,2) = 'AT', &rgb_at, " + ;
        "left(gridjobs.wed,2) = 'AM', &rgb_am, " + ;
        "left(gridjobs.wed,2) = 'PM', &rgb_pm, RGB(255,255,255))"       


Bill


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to