ErrorMessage when file is missing

From: reidarT (reidar_at_eivon.no)
Date: 12/26/04


Date: Sun, 26 Dec 2004 18:38:49 +0100

Dim Kildefil as object

Kildefil = "H:\dbBil\dbBil.mdb"

if not Dir(Kildefil)) Then
else
Msgbox("Can't find file!",msgboxstyle.information,conMelding)
end if

I get this error when file is missing.

Change form string to type Long is not legal.
regards
reidarT