Re: Invalid use of Null !
It is always a good practice to check if any records are there in the recordset. The way to do this is
if Rst.Eof and Rst.Bof then
msgbox "No Records returned"
else
msgbox Rst.Field(0).Value
end if
Re: Invalid use of Null !
Please see my following thread also !
Table update problem !
Re: Invalid use of Null !
In Access:
Nz function (very useful) takes two parameters, the first is the variable you are checking, the second is the default value should the first be null.
In VB/Access:
Isnull function - example : debug.print isnull(rst(0))
Returns true if the variable is null, and false if not.