Thomas
|
| Posted: 12/22/2002, 11:55 PM |
|
I have the following problem:
Table: items . Fields: item_id, datum, titel.
If the value of the field datum is in the past, the value of the field title should be shown as label. If the value of the field datum is the current date or is in the future the value of the field title should be shown as link to the page "Details" with the field item_id (a href=details.asp?item_id=11&).
I tried to set field title as label with the following expression in events, before show:
if flddatum=>date then fldtitel="<a href=details.asp?item_id="&flditem_id&"&>"&fldtitel&"</a>" else fldtitel=""&fldtitel&""
Result is that title is show as link, also when date is in the past.
Hope that anybody have an idea to solve that problem.
|
|
|
 |
Nicole
|
| Posted: 12/25/2002, 2:18 AM |
|
Thomas,
try the following code:
if CDate(flddatum)<= now() then
fldtitle ="<a href=details.asp?item_id="&flditem_id&"&>"&fldtitel&"</a>"
end if
|
|
|
 |
|