|
-
January 30th, 2000, 05:09 PM
#1
invalid use of null
<vbcode>
If rstCurrent("City") = "" Then
txtCity = ""
Else
txtCity = rstCurrent("City")
End If
</vbcode>
rstCurrent is a recordset, txtCity is a textbox. The code above generates "Invalid use of null". How can I check if rstCurrent("City") is indeed Null?
thanks a lot
-
January 30th, 2000, 06:31 PM
#2
Re: invalid use of null
Try this:
If IsNull(rstCurrent("City")) then
txtCity = "null"
ElseIf rstCurrent("City") = "" then
txtCity = ""
else
txtCity = rstCurrent("City")
End If
Crazy D :-)
"One ring rules them all"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|