>Nope, it just throws an error ("IDataForm is a Type and cannot be used in an expression")
>
>that was the first thing I tried.
>
>
>Thanks
>Brian Grant
Brian,
Though your code led to a guess you didn't tell it was VB. Viv, like me is a C#er and in C# it's easy (as Viv showed). In VB however you need TypeOf. Check:
Can this be interpreted as a bug? Thread #
1125597 Message #
1125597ie:
if TypeOf myForm Is IDataForm then
' Life is hard with VB
Cetin