Dim ctl As Control
Dim blnEnabled As String
blnEnabled = NULL
For Each ctl In Me
If ctl.Tag = "ClearAll" _
Then ctl = blnEnabled
Next ctl
Can anybody tell me what's wrong with this code????
I'm always getting an error message saying that I'm not using NULL
correctly???
Thanks
JS
Dan Artuso - 31 Jan 2005 20:57 GMT
Hi,
The only variable type that can be NULL is a variant.

Signature
HTH
-------
Dan Artuso, MVP
> Dim ctl As Control
> Dim blnEnabled As String
[quoted text clipped - 13 lines]
>
> JS