0

Hey I am not able to copy an access DB from one folder to another using excel vba . I am not getting any error ... But still no file is getting copied...Instead i am getting something called '873ED000' with 0 bytes. What could be the reason?. Please help me out. Also is this the best method to copy ?? My tool needs to be faster and the Database is huge.

FileCopy "E:\Test Folder\Feature_Planning_Data.accdb", "" & ThisWorkbook.Path &       "Feature_Planning_Data.accdb
1
  • If the file is huge, are you sure you have Compacted & Repaired recently? Commented Jan 9, 2013 at 12:09

1 Answer 1

1

Try this (I am assuming that the Excel File from where you are running the code is saved)

FileCopy "E:\Test Folder\Feature_Planning_Data.accdb", _
ThisWorkbook.Path & "\" & "Feature_Planning_Data.accdb"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.