Results 1 to 2 of 2
  1. #1
    tess is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    2

    command buttons - expressions vs macros

    I worked with Access for 10 years, and after 5 years away I've found myself assigned to do some work on a database created by someone else.

    Lots of issues, I'm working through most. But here's a puzzler.

    For reasons I don't want to get into right now, probably not related to the problem, rather than using a copy of the database, I created a new one and imported all the objects.

    the first thing I notice is that none of the command buttons work. the underlying expressions are correct, for example ..

    DoCmd.OpenForm "Frm_ClientInvolved", acNormal, , , acFormEdit, acWindowNormal, Me.box_ID

    but, nothing happens.



    So while troubleshooting I decided to create a new command button. It used to be that the button wizard would go through the basic steps and create an expression like the one above. Well this time, it created a macro. So the new button does work. But I don't want to have to redo every button in the system.

    Anybody know why it's doing this. Or, is there some setting in 2010 that would influence whether the wizard creates a macro or a an expression.

    Mostly.. why the heck don't those buttons work??

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Starting in 2007, a database has to be in a trusted location for code to run. Alternately, there should be a bar below the ribbon with the option to enable it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. command buttons
    By hijack61 in forum Access
    Replies: 4
    Last Post: 11-19-2011, 04:59 PM
  2. Command Buttons
    By BLD21 in forum Access
    Replies: 2
    Last Post: 05-10-2011, 06:27 AM
  3. Command Buttons
    By Rosier75 in forum Access
    Replies: 3
    Last Post: 03-09-2011, 11:59 AM
  4. command buttons
    By nashr1928 in forum Forms
    Replies: 23
    Last Post: 10-15-2010, 04:09 PM
  5. Command buttons
    By maintt in forum Forms
    Replies: 3
    Last Post: 08-03-2010, 09:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums