>When I USE a .DBF (interactively) and the associated CDX file does not exist, I have the option to ignore the error and the .CDX is no longer required.
>
>How do I do this in code?
>If I get an error 1707, I can trap it, but big deal, the .DBF still doesn't end up open...
>
>I thought that maybe SET SAFETY OFF would allow code to open a DBF w/o its matching CDX but no luck.
>
>
>What am I missing?
>
>Thanx!
Actually, you can open it. The first time your USE MyTable, the reference to the CDX will be removed. Then USE MyTable on the next line and it will open.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer