If you change the line inside of your IF...ENDIF to "USE skaset!keys IN 0 AGAIN", it should work.
Randy
>I have a table of valid keyvalues called "keys" in my database "skaset". When adding records, I open the keys table with this:
>
>
>IF !USED("keys")
> USE skaset!keys IN 0
>ENDIF
>
>
>but if it has already used and later is closed, it sometimes (with a certain table) gives me "Error 3 - file is in use". How can I be getting that error? The debugger says that USED("keys") = .F. when I get the error. Is there a problem with opening, closing, and opening a table again?