Is 'gastos' table open ?
Try:
set database to fc
before call your query.
>Hi, when i call a query from a form it displays a dialog box asking me to locate the database file and i don't know why, can you help me plz?
>
>this is the code that calls the query:
>
>DO "e:\fc\queries\gastos.qpr"
>
>
>and this is the query code:
>
>SELECT Gastos.tipo, Gastos.valor, Gastos.descripcion,;
> Gastos.nombrecaballo, Gastos.nombreyegua, Gastos.fecha;
> FROM ;
> fc!gastos;
> INTO CURSOR cvcursor
>REPORT FORM reportes\gastos.frx NOCONSOLE PREVIEW
>
>
>Thx.