Try to open database first otherwise VFP thinks that you want to open a free table 'histview'.
>Hello All,
>
>Can anyone please tell me why this error message is occurring?
>
> File 'c:\genesis\wilco1\histview.dbf' does not exist.
>
>I have the following code to open the view named [Histview] in the click event of a button on a form. When I click the button the code is failing on the "Use History" line. I agree it should be simple bit I'm missing something.
> If Used("histview")
> select histview
> Browse
> else
<b>Open Database mydatabase</b>
> Use histview
> select histview
> Browse
> Endif
> Use
--sb--