Results 1 to 2 of 2
  1. #1
    CraigR is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Posts
    27

    Display order

    Hi and thanks in advance, :-)

    I have a pop-up window, that has 2 images, one over the top of the other. Both are the same size.
    image (1) is a building standard showing the requirements for a stair Landing.
    the other image
    image (2) is also a building standard but showing the requirements for a threshold landing.

    I would like to be able to have a button that can change text



    text = Stair Landing when clicked the image "Landing" is brought forward. but when clicked and the "Landing" image displays the button changes text to:-
    text = "Threshold" and when clicked the threshold image is brought forward

    so popup opens
    "Landing" image is shown and button displays text "or Threshold?" 'click' and
    "Threshold" image is shown and button NOW displays "or Landing"

    Again thanks for your help

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    When the form opens, have one or the other display as the default, then for the button:
    Code:
    sub cmdButton_Click()
    select Case cmdButton.caption
        Case "or Landing"
            ImageLanding.visible = false
            ImageThreshold.visible. = true
            cmdButton.caption = "or Threshold"
    Case "or Threshold"
            ImageLanding.visible = true
            ImageThreshold.visible = false
            cmdButton.caption = "or Landing"
    End Select
    Clicking the button should alternate the images and button caption.

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

Similar Threads

  1. Reverse the display order of names
    By Khatuaaccess in forum Access
    Replies: 3
    Last Post: 10-17-2016, 07:57 AM
  2. how to display the last order date
    By JRCharlie in forum Access
    Replies: 5
    Last Post: 05-25-2013, 06:00 PM
  3. display order number
    By Hopeless in forum Forms
    Replies: 3
    Last Post: 08-25-2012, 06:46 PM
  4. Have query Display Days in Order
    By jo15765 in forum Queries
    Replies: 3
    Last Post: 09-27-2011, 08:59 AM
  5. Combobox display order
    By Duncan in forum Queries
    Replies: 91
    Last Post: 09-01-2011, 05:12 PM

Tags for this Thread

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