troubleshooting Question

How to resolve the message "Microsoft Office Access couldn't close database" ?

Avatar of zimmer9
zimmer9Flag for United States of America asked on
Microsoft Access
2 Comments1 Solution1325 ViewsLast Modified:
I am developing an Access application using Access as the front end and SQL Server as the back end database with an ADP file.

In my Access VBA code, which is shown in the Code section, I get the following error when the compiler attempts the following line of code:
I use a timestamp as part of my naming convention to make all files generated unique.
No one else is using this application right now except me.

ExportedFile = "\\SPRGACSMVE" & "_" & intYearSP & "_" & Format(Now, "mmddhhnnss") & ".XLS"

The error message is as follows:

Your last change may not have been saved because an internal buffer was locked by another user (whose name was given in the previous message).
To avoid losing data, wait for the other user to finish using the record, and then click OK again.
If you click Cancel, you may lose changes that haven't been saved.

ExportedFile = "\\SPRGACSMVE" & "_" & intYearSP & "_" & Format(Now, "mmddhhnnss") & ".XLS"
 
DoCmd.TransferSpreadsheet acExport, 8, "tblSpACSMVE", ExportedFile, True, ""
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros