Leentje® wrote on 17 jun 2007 in microsoft.public.inetserver.asp.general:
i'm trying to determine if a record is empty
and when it's not, it has to show that record
<% If Not Len(rs("opmerking")) = 0 Then %>
Good idea, why not try:
<% If Len("" & rs("opmerking")) 0 Then %>
<% If Not Len(rs("opmerking")) = "0" Then %>
The above is illogical, since len() should return a number.
<% If not(isNull(rs("opmerking"))) Then %>
You were asking for empty, noot for a null value.
Empty of a string field value would be "" or Null.
Are you sure the field is a string?
Do you allow null values of that field?
What database engine?
We need meer informatie, Leentje, to learn Lotje to walk.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)