Results 1 to 9 of 9
  1. #1
    abrogard is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    18

    How to access design view and VBA code

    After 10 years of not using Access I want to get started again.



    I pulled up an old prog I'd written in Access in 2000 and my current Access 2007 converted it.

    Then I found myself looking at it and unable to 'get into' it.

    I mean I couldn't put it into design view or find a way to look at the procedure list, the code.

    This was an .mdb file. It was converted to an .accdb file

    Is there some way I can get it to where I can work on it?

    I want to do that because I think it is the quickest way to get up to speed again... read my old code, see what I did and how I did it....

    But perhaps you'd say it's best to start from scratch... things have changed that much?

  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,521
    The interface changed a lot, with the Navigation Pane and Ribbon, but a lot is the same. F11 should open the Navigation Pane, and Alt-F11 should open the VBA editor.

    I'm also going to change the thread title to something more meaningful.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    abrogard is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    18
    Okay, thanks for that. I will try it.

    Sure, change the title. You've got a point there, I should have thought of it. Sorry. Thinking of myself more than the forum.

    'wino' moderator as in 'wine' or as in 'windows' ?


  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem, and welcome to the site! Post back if you get stuck.

    Wino as in Cabernet, which I just shared a bottle of at dinner.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    abrogard is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    18
    Somehow I thought it might... Shiraz Cabernet, coincidentally, happens to be my favourite tipple...



    Hmmm.... it doesn't work...

    The prog I'm trying to use was a fairly trivial thing which is why I wanted to start with it. It is less than 1M in size. It is a quiz/questionnaire type thing.

    If you think I'm doing something wrong I could send it to you to see for yourself.

    It opens up. One can use it - how successfully I'm not sure, I don't remember if it ever worked properly or not.. I know it was never really finished. But you can't get at the workings of it. Or I can't.

    Last edited by abrogard; 03-22-2012 at 01:03 AM.

  6. #6
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Try opening the db first by holding down the shift key and the enter key simultaneously when launching it. Once it opens, then try Paul's suggestions. You may have locked it down

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Ah, you edited your post after I read it. Sure, you can post it here if you can't get into it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    abrogard is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    18
    Yes, that seems to work. It opens with a side 'navigation' bar listing all objects. Open the code module and it opens in a 'design' window. Has the sidebar but nothing at all showing in the main window. The icon to change views greyed out.
    Don't need the F11. If I use it the sidebar disappears, use it again it comes back. It seems to toggle that sidebar.

    Prog opens with a warning about something disabled and it turns out to be a VBA macro. If I enable it we jump immediately to the opening form view and the sidebar disappears and I'm back where I was: locked out.

    So maybe that macro is what is locking me out? Need to find it and delete it?

    After jumping around a bit, opening this and that and the other I find the 'view' icon working again... don't know what I do/did that made that happen.

    Long story short: I can now get at it. That's the main thing. Thanks a lot.


  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If there's a macro running when the db starts, it would be likely be named "autoexec".
    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. Replies: 2
    Last Post: 05-02-2017, 05:46 PM
  2. Access 2010 - Form Design View
    By amestreet in forum Access
    Replies: 1
    Last Post: 03-17-2012, 06:02 PM
  3. Unable to view query in design view
    By vemi007 in forum Queries
    Replies: 7
    Last Post: 01-19-2012, 11:36 AM
  4. Design view 'freezes' in Access 2010
    By dknowle in forum Access
    Replies: 1
    Last Post: 08-31-2011, 11:05 AM
  5. Replies: 1
    Last Post: 08-10-2011, 12:04 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