Results 1 to 14 of 14
  1. #1
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131

    application minimization is not working

    Hello Sir,
    i am using
    code


    Code:
    DoCmd.RunCommand acCmdAppMinimize
    for minimize application.
    It works properly when my form open in normal mode but in dialog mode it is not working.
    Thanks in Advance

  2. #2
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199
    Quote Originally Posted by joshynaresh View Post
    Hello Sir,
    i am using
    code
    Code:
    DoCmd.RunCommand acCmdAppMinimize
    for minimize application.
    It works properly when my form open in normal mode but in dialog mode it is not working.
    Thanks in Advance
    It should work, And probably the properites>other>Modal is yes, it should be no.

  3. #3
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    Properites>Other>Modal is no. but not working.

  4. #4
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199
    If u send me the mdb then i can do somthing, remove all confodential

  5. #5
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131

    application minimization is not working

    i'm sending sample database for analysis.
    SampleDB.zip

  6. #6
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    Hello sir, Plz help me. I have already sent Sample Database for analysis.
    Thank You.

  7. #7
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199
    Sorry mate, i was too busy in my own new project. I have seen the situation and couldnt b able to resolve the same...it have a strange behaviour...hope someone knows it

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    When I first opened the db the minimize code would not work.

    I closed and reopened and got an error about broken reference to MSCAL.OCX. I think that is something to do with a calendar. I just OK and the minimize code works.

    I removed the VBA reference and now the minimize code not working. I opened the form from navigation pane and minimize code works.

    The AutoExec macro opens form as popup (dialog mode) if the db is not trusted. The popup seems to be cause of issue. Why should trusted or not trusted determine how form opens?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    it's only my sample database. in my orignal database when it is not trusted msg displayed for making trusted. after db become trusted everyfunction works properly except minimizing application. I want, it should work in trusted db on dialog mode (It works properly in normal mode). Is it possible?

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    Apparently not. I just tested it with VBA opening form in Dialog and it also fails. Maybe has something to do with fact Dialog suspends code execution in the calling procedure.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    What Should I have to do on VBA Code.
    Thank You

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    It doesn't work when form is opened in dialog mode. Period.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  13. #13
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    Do you know any causes of this behavior?

  14. #14
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    I presume it is how Access is programmed. Have to ask Bill Gates why.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 01-29-2013, 04:34 AM
  2. Tax Return Application
    By Hobbledehoy in forum Access
    Replies: 1
    Last Post: 04-18-2010, 05:41 AM
  3. Accessing Another Application
    By searle in forum Programming
    Replies: 2
    Last Post: 03-24-2010, 08:17 PM
  4. Replies: 0
    Last Post: 08-26-2008, 09:22 AM
  5. Access application to Web based application
    By admaldo in forum Access
    Replies: 0
    Last Post: 06-12-2008, 06:22 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