Mohan when your DAO control connects to the database and it cannot connect/find it it will throw an exception. In VB6 I used the ADODB control (I found it much superior to the others) so I'm not sure exactly what type of error the DAO control throws. A simple way to check is to move your access database and try running the program.