![]() |
Sergey Kornilov admin 1/11/2007 |
I would choose the first option. if strExt="doc" then |
|
orit author 1/15/2007 |
Thanks.
' return custom expression
|
J
|
Jane 1/15/2007 |
Orit, strExt = LCase(Left(strValue,3)) if strExt="doc" then strValue="<img src='images/word.gif'>" elseif strExt="xls" then strValue="<img src='images/excel.gif'>" elseif strExt="ppt" then strValue="<img src='images/powerpoint.gif'>" end if |
|
orit author 1/15/2007 |
Thanks, |
![]() |
Sergey Kornilov admin 1/15/2007 |
You can reference any field on the list page using rs("FieldName") |
|
orit author 1/16/2007 |
Thanks a lot, ' return custom expression
|
![]() |
Sergey Kornilov admin 1/16/2007 |
How the value of fileType field is relevant in context of this code? |
|
orit author 1/16/2007 |
The only function of the fileType field is that the appropriate image suppose to sit on this column. |
|
orit author 1/17/2007 |
The fileType field is actually only a placeholder for the type image and is not part of the add\edit pages. Following your answer that fields that are updated through lookup wizard or radio buttons can't hold custom code in list view, Is there any problem to have custom code for this fileType field which actually doesn't hold data\value? |