John Sowden: Re-formatting this msg per Tracy Pearson's suggestion: We solved this same problem with the following code in our ErrorTrap procedure:if error() = 1707 or upper(message(1)) = "STRUCTURAL CDX FILE NOT FOUND." *-- ignore it, because our programs will build the index. retry && which will open the file endif When you do 'use MyDBF' it triggers the error because the CDX is missing. This code ignoresthis particular error and opens the DBF without the CDX. You can then test for the CDXand do your re-creation. Dan Covill
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/bay169-w13000029bf33e367bb96b2c8a...@phx.gbl ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.