Results 1 to 5 of 5
  1. #1
    RedVicar is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    3

    Set Web Control Scroll Bar Value - Code / Macro

    I have a Web Browser Control which displays the location of premise from a table using Bing. The Control itself isn't large enough to show the entire Bing page, so it has vertical and horizontal scroll bars.




    It's vertical position is fine, but I'd like it to by default display from the far right hand side as opposed to the left. I'm guessing there's a way to set the ScrollValue (or similar) of the horizontal bar in code, but am unsure what to do. Or perhaps
    there's a really simple way and I'm missing it.


    I've done quite a bit of searching, but keep coming up for solutions for List / Combo boxes etc. Any help greatly appreciated.

    Cheers


    Red



  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by RedVicar View Post
    ...far right hand side as opposed to the left...

    Display what, exactly? Display the scroll bar? Display the map center? If you are talking about the map center, you will probably need to pass lat and lon coordinates as a parameter for Map Center.

  3. #3
    RedVicar is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    3
    Nope, forcing the scrollbar far right. The map functionality is fine, but there is a large white box displaying on the left hand side (part of Bing's site, much like Google Maps). Currently a user would need to scroll the horizontal scroll bar right to see the whole map as this white box can't be closed; I'd like to have it scrolled right by default so they don't have to. I would love to tell them to toughen up and scroll it themselves, but sadly they will be using this function many 100s of times throughout the day.

    The control source of the Web Control is:

    Code:
    ="http://www.bing.com/maps/default.aspx?setmkt=en-CA&where1=" & [txtSuburb] & "&lvl=15&w=100%"
    where 'txtSuburb' refers to a Text Box on the main form.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I would probably just have the map open in a browser window. You might be able to change the width to 70% or something to get it to fit in the control.
    w=70%

  5. #5
    RedVicar is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    3
    The users would find it very frustrating opening in a browser - some of the more experienced ones go through 20 - 30 records a minute. They'd probably riot!

    I've tried various ways of changing the zoom etc of the control, but the map just re-sizes itself. Forcing the scrollbar right (or setting it to display right-to-left, as you can with text for languages like Arabic) is the only way I can think of atm.

    Cheers

    R

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

Similar Threads

  1. Replies: 3
    Last Post: 07-20-2013, 12:53 PM
  2. Replies: 13
    Last Post: 07-19-2013, 08:34 AM
  3. Control of horizontal scroll bar
    By smthomer in forum Programming
    Replies: 3
    Last Post: 08-25-2010, 10:52 AM
  4. Out of control loop in autoexec macro
    By accessnewbie in forum Programming
    Replies: 2
    Last Post: 08-19-2010, 04:31 PM
  5. Help on macro to scroll one record back?
    By getholdofjoru in forum Forms
    Replies: 2
    Last Post: 06-19-2010, 03:01 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