
Error 32504 "File not Found"
Quote:
>Re: Error 32504 "File not Found"
>I've got a vb4.0 app in which I'm using a data control on a form to
>access a dbf file. Any of the computers that have VB4 installed on
>them, the app runs fine. On some other computers the app crashes with
>the 32504 error. I have error trapping in the load event, but the load
>event doesn't get fired before this error occurs. Occasionally the form
>will manage to come up on the screen, (leaving several instances of the
>application running) but the datafile has not been accessed. The
>controls that are databound still have there names listed instead of the
>data from the dbf file.
In VB3 (which I've stayed with for now....) got similar results when I
put a value in the DatabaseName property of the Data control at design
time. I leave this blank, and set the value at runtime when I load up
the form. As long as you have a good way of knowing the full path for
the database and its name (from an ini file or from some default you
use) this should be all you need.
The bound controls will display your default design-time text until
you successfully bind to a data file and open a record to replace
these values. I sometimes code to blank these fields at runtime as
well, in any instances where the form may be opened on a database
prior to inserting any records that match the dataset properties....
saves the oddball text names being inflicted on a user.
Regards