Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25
  1. #16
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try



    https://stackoverflow.com/questions/...r-send-to-back
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  2. #17
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    I am not sure GotFocus event is the best one for what you are trying to do.
    What else fires when the user clicks on the down-arrow of the combo?

    I understand your description of making the image form Modal. It's the same situation as if I open it Dialog, in which case the user would have to close the image form before any other user action.

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Why do you need action on click of dropdown? Why not AfterUpdate event?

    Have to close or set not visible. Basically same result from user perspective.

    Opening with acDialog doesn't seem to be quite the same as setting Modal property. When I use acDialog, can't seem to programmatically set Visible property. I can with Modal property set to yes.
    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.

  4. #19
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Why do you need action on click of dropdown? Why not AfterUpdate event?
    Because to make the appropriate choice among the dropdown list requires simultaneous viewing of the image, hence pop the image up when the down-arrow is detected.

    So, at 4AM this morning I said to myself, "dah self, replace the combobox with bound a text box and put the choice selection right in the image form and open the form dialog!".

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    So user had to click combobox to trigger form popup? I try to build forms so user doesn't have to leave keyboard during data entry.

    Glad you found an alternative.
    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.

  6. #21
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,979
    Bill
    You asked me to look at post #12 though you since seem to have found the problem

    For info, although it will still work, you don't need the Form in Forms!frmImSample.Form.Visible = True

    You can bring an object to the front in design view using DoCmd.RunCommand acCmdBringToFront
    Or you need to set focus on the object in a form to bring it to the front: Me.ObjectName.SetFocus
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  7. #22
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    AFAIK, DoCmd.RunCommand acCmdBringToFront applies to controls on form, not form itself, and only works when form is in design view:

    Me.tbxItemSearch.InSelection = True
    DoCmd.RunCommand acCmdBringToFront


    In my test, programmatically setting focus on control in form does not bring the form to front.
    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.

  8. #23
    davegri's Avatar
    davegri is online now Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    Quote Originally Posted by June7 View Post
    AFAIK, DoCmd.RunCommand acCmdBringToFront applies to controls on form, not form itself, and only works when form is in design view:

    Me.tbxItemSearch.InSelection = True
    DoCmd.RunCommand acCmdBringToFront


    In my test, programmatically setting focus on control in form does not bring the form to front.
    How abou this:

    DoCmd.SelectObject acForm, "frmLocal" 'bring to front

  9. #24
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,979
    Quote Originally Posted by June7 View Post
    AFAIK, DoCmd.RunCommand acCmdBringToFront applies to controls on form, not form itself, and only works when form is in design view:

    Me.tbxItemSearch.InSelection = True
    DoCmd.RunCommand acCmdBringToFront


    In my test, programmatically setting focus on control in form does not bring the form to front.
    Yes- that's what I said in the previous post
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  10. #25
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Quote Originally Posted by isladogs View Post
    Yes- that's what I said in the previous post
    Yes, I see that now.

    However, the issue is about how to bring a form to front of other forms in the app window, not revealing a control on form.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 02-12-2019, 08:52 AM
  2. On Field Change, Visible = True
    By wtucker in forum Access
    Replies: 20
    Last Post: 04-25-2018, 12:11 PM
  3. Replies: 1
    Last Post: 03-27-2016, 10:29 PM
  4. Visible - Not Visible Macro Not Working?
    By euphonium01 in forum Macros
    Replies: 3
    Last Post: 07-08-2015, 02:20 AM
  5. visible form but not have focus when true
    By Ruegen in forum Programming
    Replies: 5
    Last Post: 04-30-2015, 10:31 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