
Opening a dBase file : file not found but it exists really
The program below doesnt go. I get this message : = "Run time error 3044.
'c:\annu.dbf' isn't a valid path. Make
sure that the file exists...." and the file really exists. Same thing with
"annu" instead of "annu.dbf"
This same file can be opend with a Data control. In this case, I must select
"Record source" with "annu" (name of the .dbf file). If record source is
not given, I get a message quite like with my application.
Thanks for your answers.
Source of the application :
Dim Db As Database
Dim Rs As Recordset
Private Sub Form_Load()
Dim sn As Recordset
Set Db = OpenDatabase("c:\annu.dbf", False, False, "dBase IV;")
......
End Sub