Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2010
    Posts
    2

    Hiding code


    I am working an a complex database.

    I have created specific functions (Public <function name>() as...) whose code is stored in table fields. When some of these specific functions are needed, I read the table content, dynamically create a new module, put the function code within, make an Eval(<function name>) to get a result, and erase the dynamically created module.

    My problem is that the VBA editor window is launched. Is there a way to prevent its display (by code or something else)?

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    I am unable to answer your question but I am curious as to the need to do this. Why don't you just keep the funtions in module?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Join Date
    Nov 2010
    Posts
    2
    The functions' code have to be stored there (in a table) to allow their modifications on different regional sites. That prevents a de-synchronization of the application core code and a whole mess (and a lot of developer work) with new version releases. It brings flexibility.

    What I found now is, just after the creation of the dynamic module is a
    SendKeys "%" & "{F4}" 'Send CTRL + F4
    that will quickly close the Microsoft Visual Basic Editor. But there is still a flickering of screens. So I am still searching.

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

Similar Threads

  1. Hiding Images
    By Mclaren in forum Access
    Replies: 9
    Last Post: 06-30-2011, 11:37 AM
  2. Hiding controls
    By gg80 in forum Forms
    Replies: 3
    Last Post: 05-21-2011, 03:21 PM
  3. Hiding toolbar?
    By BAX5127 in forum Access
    Replies: 2
    Last Post: 04-06-2011, 10:58 AM
  4. Hiding Macro
    By datacase in forum Access
    Replies: 3
    Last Post: 01-07-2011, 08:41 AM
  5. Hiding subreports
    By aouellette in forum Reports
    Replies: 0
    Last Post: 09-12-2008, 08:02 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