Yes, it should be the current folder.
I suggest doing a simple FileExists test, if possible
Dim CurrentPath As String
CurrentPath = Application.StartupPath & "\"
If My.Computer.FileSystem.FileExists(CurrentPath & "<DBname>.sdf") Then
MessageBox.Show("Database file exists", _
"Exists", _
MessageBoxButtons.OK, _
MessageBoxIcon.Information)
Else
MessageBox.Show("Database file not found", _
"Exists", _
MessageBoxButtons.OK, _
MessageBoxIcon.Warning)
End If
with the installed application.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Offline 1,024 posts
since Aug 2008