>I also note that VARTYPE does not vette OCX objects. For two years (or so) my code has been vetting OCX exclusively with TYPE. I maintained VARTYPE for form vetting. But in 8, VARTYPE is not as reliable as it was with 7 or 6 - at least that's what I think I am seeing.
>
>I've other issues with VARTYPE that I tried to solve with proxy names for forms and so on. They worked. But now, I suspect, that I can revert to actual object names by simply switching to TYPE.
Got it. You can also have a problem with PEMSTATUS with ADO objects [and I suspect some OCXes]. The first time you try to test for a PEM with PEMSTATUS, you get a False return value even though the PEM does exist. The second time you hit it, you get the correct return value. However, if you use TYPE function, it works all the time.
Mark McCasland
Midlothian, TX USA