PC Review


Reply
Thread Tools Rate Thread

Another bug in Access 2007

 
 
Baz
Guest
Posts: n/a
 
      16th Jan 2008
I have discovered another bug in Access 2007.

In A2007, empty event procedures are automatically removed when you compile.
This is A Good Thing, because of all the empty event procedures that Access
automatically creates. In earlier versions, these had to be manually
deleted if unwanted (or ignored if lazy).

However, in A2007, if said empty procedure happens to be the *last*
procedure in a module, compiling fails silently (without removing the
procedure), and if you then make an accde (or mde) file, it will appear to
have been sucessfully created *but no code will run in it*.

The solution is simple: track down and delete the empty procedure.


 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      16th Jan 2008
Interesting observation, Baz, but I'm not seeing it.

I do see the empty event procedure removed when I compile.
That happens even if it is the last proc in the module, and the compile
succeeds.

Wonder what's different. Do you have Service Pack 1? I tried in the the
module of a form, using Access 2007 SP1 on Vista, starting msaccess with
RunAsAdmin. I also have Compile On Demand turned off (Tools | Options |
General, from the code window.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Baz" <(E-Mail Removed)> wrote in message
news:478dc273$0$13929$(E-Mail Removed)...
>I have discovered another bug in Access 2007.
>
> In A2007, empty event procedures are automatically removed when you
> compile. This is A Good Thing, because of all the empty event procedures
> that Access automatically creates. In earlier versions, these had to be
> manually deleted if unwanted (or ignored if lazy).
>
> However, in A2007, if said empty procedure happens to be the *last*
> procedure in a module, compiling fails silently (without removing the
> procedure), and if you then make an accde (or mde) file, it will appear to
> have been sucessfully created *but no code will run in it*.
>
> The solution is simple: track down and delete the empty procedure.


 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      17th Jan 2008
"Baz" <(E-Mail Removed)> wrote:

>I have discovered another bug in Access 2007.
>
>In A2007, empty event procedures are automatically removed when you compile.
>This is A Good Thing, because of all the empty event procedures that Access
>automatically creates. In earlier versions, these had to be manually
>deleted if unwanted (or ignored if lazy).


I'm pretty sure A2003 does this as well.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Access 2007 donot have the "Data Access Page" Function ? How I can do with 2007 for this issue ? Martin Microsoft Access 4 3rd May 2010 08:46 PM
importing table contents from Word 2007 into Access 2007 andgenerating queries, reports using Access 2007 g_1 Microsoft Word Document Management 3 12th Nov 2009 06:58 AM
Export from MS Access 2007 to Quickbooks IIF - How can I create a tabdelimited text file from Access 2007? Steve Microsoft Access Macros 2 11th Nov 2009 01:52 PM
Securely accessing an Access 2007 database...and are Access 2007 databases secure? clifgriffin@gmail.com Microsoft C# .NET 2 11th Aug 2007 04:49 PM
access 2007 have new engine ACE 12 ,can i use it in ASP,if i not install access 2007 ? help Microsoft Access 1 17th Nov 2006 04:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:00 AM.