Put the check for the variable in the OpenData method. That way the DBC can't even be opened if the variable doesn't exist.
>It wouldn't help. All you have to do to bypass it is issue FREE TABLE command.
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer