Results 1 to 3 of 3
  1. #1
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480

    GetelementsbyTITLE?! Take a look.

    Hello, I am trying to change the value of a certain element on a webpage.



    HTML code I am trying to interact with....
    Code:
    <input name="actuals_hours" title="This title is unique and always stay the same" class="formFieldNoWidth" id="d71054e1235" type="text" size="4" maxLength="2147483647" alt="This title is unique and always stay the same"/>
    I am able to change the value by identifying the ID…

    oIE.Document.all.Item("d71054e1235").Value = "8"

    However, every time the page reloads, this ID is changed… Leaving me in a non working spot. The input name is not unique either.

    The things that are unique and do not change is the title and the alt. I am wondering how or IF I can isolate an item on the page by these elements..... Any help is appreciated.



    Thank you in advance.

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    And why is this posted on an MS Access forum?

  3. #3
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    Because I am using VBA's HTML reference library to interact with the HTML code.

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

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