Sergio, sounds like your tables are being closed. Are you using private datasessions?
If not, check to see if the first form is closing tables when it closes
If so, and your second form is modal, check to see if it is defaulting to the first form's datasession. If so, the same problem with Form1 closing tables may be the culprit
HTH
Barbara
>The form works when it's on it's own, but I have another form before that to select the reference number the user wants to work with.
>
>I store the users info along with some other things into public variables.
>Close the first form, and call the form with the grids.
>
>But when I try to use INSERT INTO 'tablename', the forms pops up a window similar to the one GETFILE() uses.
>
>Again this does not happen when I use the grid form on its own.
>
>Is there any catch?