[AccessD] vb.Net - Checking for NULL values

David Emerson newsgrps at dalyn.co.nz
Mon Jun 12 23:46:02 CDT 2006


Thanks.  While neither of those worked either it prompted me to try 
this which did:

         If Session("ItemAmt") = "" Then

Maybe it is something to do with the way session variables work???

David


At 13/06/2006, Stuart wrote:
>On 13 Jun 2006 at 16:09, David Emerson wrote:
>
> > Hi Darren,
> >
> > My code is not in SQL but in VB.net.  It doesn't recognise Is Null
> > either.
>
>Try either:
>         Dim MyNull As System.DBNull
>        ...
>         If Session("ItemAmt") Is MyNull Then
>
>or:
>    If Session("ItemAmt") Is Nothing Then



More information about the AccessD mailing list