Results 1 to 11 of 11
  1. #1
    gstylianou is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2013
    Posts
    167

    Bring To Front & Send Back Properties using VBA

    Good Evening



    In the database I am attaching there is the form Form1 on which there are several fields with hours. The request is to be able to define the Properties Bring To Front & Send Back via VBA when and if I click on the Text0 field.

    I am providing an example of the request and I will appreciate your help.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    My understanding of Z-axis movement (front-to-back or back-to-front) is only observable for superimposed (layered) objects. I don't see that in your DB, so I have no suggestions, or means to test.
    Perhaps you could explain what purpose the movement is supposed to accomplish? What do you want to see as the result of the movement?

  4. #4
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    I don't see any layered objects either, and if this is about z order for forms, IIRC Access does not support that for forms. If it is about controls, then I think this is neither a property or a method for any control. Methinks it is only doable via either application.runcommand or docmd.runcommand - in other words programmatically running ribbon commands. Even then, there is a send and a sendtoback command but there doesn't seem to be a sendtofront command. If one could get that to work, I imagine the only thing you can do is move things back in the layers. That could mean a whole bunch of sending back until the desired object ends up in the front. Probably not an issue with two controls, but certainly could be with several layers.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    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 last time you asked this (that I know of) it quickly evolved away from back and front:

    https://www.access-programmers.co.uk.../#post-1910087
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by pbaldy View Post
    The last time you asked this (that I know of) it quickly evolved away from back and front:

    https://www.access-programmers.co.uk.../#post-1910087
    I *thought* the username and question was familiar.
    One for the my IL methinks.

    Nice catch.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #7
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    What I like about AccessWorldForums is how easy it is to put cross posters (who don't provide links to other sites) on your ignore list.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I apparently goofed and posted a link to a post instead of the thread itself. Post 11 is where the requirements got refined/changed.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by Micron View Post
    What I like about AccessForums.net is how easy it is to put cross posters (who don't provide links to other sites) on your ignore list.
    Easier over on AWF :-)
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  10. #10
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Anywhere in the thread is good enough.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  11. #11
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Quote Originally Posted by Welshgasman View Post
    Easier over on AWF :-)
    Yup. I edited; thanks.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Bring a Tabbed Window To Front
    By drunyan0824 in forum Forms
    Replies: 10
    Last Post: 05-03-2023, 01:31 PM
  2. Replies: 2
    Last Post: 03-04-2020, 07:45 PM
  3. Bring the Access-window to the front ??
    By ksor in forum Programming
    Replies: 3
    Last Post: 07-16-2018, 01:11 PM
  4. Access 2016 won't bring up front end
    By EScottHug in forum Access
    Replies: 1
    Last Post: 06-29-2016, 03:02 PM
  5. Replies: 2
    Last Post: 12-23-2015, 09:32 PM

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