Hi,
Empty means the variable has not been define yet. You can use, in VBA,
something like:
If IsNull(rst.Fields("myField") ) Then
... ' myField has a null value
Else
... ' myField has a not null value
End if
but you can also filter the data in the query, in the first place, using
either an inner join rather than an outer join, or a where clause like:
... WHERE Not( Myfield Is Null)
Hoping it may help,
Vanderghast, Access MVP
>I have a query of many clients and use a code to look at fields in a child
> table. Not every client in the query has a record in the child table. The
[quoted text clipped - 12 lines]
> thank you for your help,
> russ