Results 1 to 6 of 6

Thread: View VBA Code in Microsoft Access

  1. #1

    Thread Starter
    Fanatic Member The_Grudge's Avatar
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    836

    View VBA Code in Microsoft Access

    How do you get to the VBA code running in Microsoft Access?

    I have just inherited a new project that was written by someone else in Access, and when I go into what I believe is the code (I click VIEW then CODE), only a few lines show up in one module. Would it be anywhere else because I know for a fact there is more than one module?

    I know this Access database is setup all screwy. The original developer has some sort of system where a whole bunch of "copies" of the database write to one main file. If that makes any sense to anyone could you please clarify that as well.

    I wonder why he didn't just write the whole thing in VB with an Access back-end. This whole damn thing is written in Access and it pisses me off!

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: View VBA Code in Microsoft Access

    Access VBA question moved to Office Development

  3. #3
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: View VBA Code in Microsoft Access

    Dumb question but... Have you looked for Macros within the db? (as opposed to Modules)
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  4. #4
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: View VBA Code in Microsoft Access

    Quote Originally Posted by The_Grudge
    I know this Access database is setup all screwy. The original developer has some sort of system where a whole bunch of "copies" of the database write to one main file. If that makes any sense to anyone could you please clarify that as well.
    Humm...sounds like he may have used the 'Database Splitter'.
    If this is the case then you would have two seperate DBs. One with the tables (and very little code) and one with the Queries, Forms and Reports(with lots of code). You may be only looking at half the application if you're viewing the backend (tables) database.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  5. #5
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: View VBA Code in Microsoft Access

    Also try View -> Project Explorer to get a treeview of all modules in the project when in the VBA IDE. Some might simply be closed.
    Tengo mas preguntas que contestas

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: View VBA Code in Microsoft Access

    In your main acccess db press Alt+F11 to open the VBA IDE. This one should have most of your code but your other linked dbs will have some code which you can access the same way if you open each db and view the VBA IDE.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width