Loading...
Friday, May 17, 2013

VBA Code Does Not Work On ACCDE File

I once have experienced the very strange behavior of MS Access 2007, the one that didn't exist in the previous version. The strange thing was that after I did the coding and then I made ACCDE fie (figure 1), all of the event of VBA code in the compiled MS Access DB didn't work. While the original ACCDB file worked OK.

Figure 1: Make ACCED File
First I thought, there must be something wrong with my code. I looked everywhere, none seemed to be a problem.

I searched on the internet to see who used to have the same problem. It seemed like nobody did have this problem. Then I came accross one forum, and I found the solution for this. The reason why nobody faced the same problem might be that I missed the very fundamental 101 in MS Access 2007 thing that need to be done. However, this has never been a problem for me when I used MS Access 2003 or MS Access 97. And yes, my problem was resolved.

The resolution for this is ALWAYS compile VBA code before making ACCDE file. To do this, see the below instruction and screenshot.


  1. To get to the screen below just press Ctrl + G
  2. Go to menu Debug and click Compile [your MS Access database name]. In this example I use Northwind which was provided by Microsoft.


Figure 2: Compile the Database

3 comments:

  1. Thank you very much! You saved my time and life :)

    ReplyDelete
  2. Best Casinos near Casino Lake Tahoe in NV - Mapyro
    › best-casinos-near-casinos › best-casinos-near-casinos Looking for Casinos near 나주 출장마사지 Casino Lake 김해 출장안마 Tahoe? We 충청북도 출장안마 list the best 부천 출장마사지 casinos near Casino Lake Tahoe and you can compare 삼척 출장안마 the best gaming action to

    ReplyDelete
  3. 'The Biggest and Most Profitable' Casino - Filmfile
    Among the most famous is 먹튀 검증 사이트 the popular slot games 꽁머니홍보 from 사설 토토 운영 넷마블 the likes of Cleopatra, Buffalo 겜블시티 and Crazy Time. In the 먹튀 솔루션 casinos of Europe, this slot machine is

    ReplyDelete

 
TOP