I have a form where I press a button with code behind it. The code simply imports data from an excel sheet into some different tables using DAO. I do an openrecordset on a table and at the end of the code I close the recordset and set both equal to nothing.
When I press this button usually it pulls the data in from the sheet fine but sometimes when I press it, it runs through the code and puts the data into the tables but then the entire Access application closes.
Has anyone heard of this happening and know what might cause this to happen?
thanks in advance for any help you might be able to give.
When I press this button usually it pulls the data in from the sheet fine but sometimes when I press it, it runs through the code and puts the data into the tables but then the entire Access application closes.
Has anyone heard of this happening and know what might cause this to happen?
thanks in advance for any help you might be able to give.