Forums
This topic is locked
find recordsfields with values....
Posted 14 Mar 2004 14:02:01
1
has voted
14 Mar 2004 14:02:01 sander kerstens posted:
hi i want to check if the recordset is empty or has a image path.... if image path then fill the upload2 string with it... if empty then no upload2 string or upload2 string is empty
this is my code sofar:
<%Dim upload2
upload2 = (foto.Fields.Item("fotonaamthumb2".Value)
IF upload2 <>"" THEN%>
upload2 = Server.MapPath(foto.fields.item(fotonaamthumb2".value)
<%ELSE%>
upload2 = ""
<%End If%>
hope you can help me
greetz sander
Replies
Replied 15 Mar 2004 14:23:25
15 Mar 2004 14:23:25 Phil Shevlin replied:
have you tried <pre id=code><font face=courier size=2 id=code><%
Dim upload2
upload2 = ""
IF foto.Fields.Item("fotonaamthumb2".Value <>"" THEN
upload2 = Server.MapPath(foto.fields.item("fotonaamthumb2".value)
End If
%> </font id=code></pre id=code>
Edited by - wdglide on 15 Mar 2004 14:25:01
Dim upload2
upload2 = ""
IF foto.Fields.Item("fotonaamthumb2".Value <>"" THEN
upload2 = Server.MapPath(foto.fields.item("fotonaamthumb2".value)
End If
%> </font id=code></pre id=code>
Edited by - wdglide on 15 Mar 2004 14:25:01