ACK! I'd never tried that. A big oversight, IMO. Off to the Toledo wish list.
>It's not true. The FREE TABLE command doesn't care if DBC is present or not. It opens a table low-level and clears the DBC back link.
>
>>My point is, you can't free the table if you can'topen the DBC.
>>
>>
>>>>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.
>>>>>
>>>You don't need DBC to open table after FREE TABLE command.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer