This is probably due to the fact that the field is not an empty string, but null. Either append an empty string to the field's value before you compare, or check the Length of the field's value:
If rslist.Fields("tablename").Value & "" = "" Then
This chnges any null value into an empty string ("") so you can successfully compare it with another empty string.
Alternatively, use this:
If Len(rslist.Fields("tablename").Value) = 0 Then
Both Null and an empty string have a length of 0.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|