Tell windows that Datebase has been opened

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

my Database has very much code to affort at startup. Sometimes Windows tells
after a few seconds:"The file C:\powertrain.mdb couldn't be found.." I think
thats why my database first steps through my code and after this tells
windows, that itself has been opened. How can i avoid this failure-message
from windows? Is there any vba-code that tells windows, that the file has
been opened?

thx for help

matthias (from germany)
 
"The file C:\powertrain.mdb couldn't be found.."
How can i avoid
this failure-message from windows? Is there any vba-code


If Len(Dir("C:\powertrain.mdb"))=0 Then
' it's not there

Else
' you can open it

End If


HTH

Tim F
 
Back
Top