Cogivina2004
MIS
I use this code from this forum to open my access database from Excel. The macro "CombineData" is called to update its table. It works fine but the problem I have is the database does not close after it completes. When I am in access, it said the database is locked. I have to close out the window and to log back in to have it goes away. How do I fix the problem? Thanks.
----------
Sub Appendto_To_Table()
Set dbTriAuto = CreateObject("Access.Application")
dbTriAutpenCurrentDatabase (DataBasePathName)
dbTriAuto.DoCmd.SetWarnings False
dbTriAuto.DoCmd.RunMacro "CombineData"
End Sub
----------
Sub Appendto_To_Table()
Set dbTriAuto = CreateObject("Access.Application")
dbTriAutpenCurrentDatabase (DataBasePathName)
dbTriAuto.DoCmd.SetWarnings False
dbTriAuto.DoCmd.RunMacro "CombineData"
End Sub