Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8823859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:27:48+00:00 2026-06-14T06:27:48+00:00

I am writing a VB6 project which uses the InternetExplorer.Application object to log into

  • 0

I am writing a VB6 project which uses the InternetExplorer.Application object to log into a website. The login form is a modal ASP form.
All the elements of .Document are from the parent page. How do I get access to the elements on the modal login form which is opened when I do a .Click on the log-in button?

This is my code:

Set IE = CreateObject("InternetExplorer.Application")

IE.navigate "http://www.guestlink.co.uk"
IE.Visible = True

Do
    DoEvents
Loop Until IE.ReadyState = READYSTATE_COMPLETE

IE.Document.All.Item("ctl00_imgLogin").Click
Do
    DoEvents
Loop Until IE.ReadyState = READYSTATE_COMPLETE

With IE.Document.aspnetForm
    .getElementById("ctl00_content_txtUserName").Value = "MyName"
    ....
End With

VB gives “object variable not set” error because IE.Document.aspnetForm points to an element on the parent page, not the modal ASP form. How do I get .document to point to the modal form?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T06:27:49+00:00Added an answer on June 14, 2026 at 6:27 am

    The URL you are using is for the main page, but the log in form is inside an IFRAME. Try changing the URL (IE.navigate) to:

    https://www.guestlink.co.uk/login.aspx?placeValuesBefore

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a C# frontend to a legacy database that uses VB6 Rnd() and
Hi i am writing a socket client/server application in VB6. i have the following
We are writing a plugin for an existing VB6 application (via COM interop), and
I am writing a simple application that utilizes option(radio) buttons in vb6. I am
We have a Com+ VB6 DLL used in our asp classic application. After upgrading
We have a number of classic ASP websites using a VB6 DLL (COM) object
I am writing a module for a third party application; the application uses __cdecl
My work has an application written in VB6. I am tasked with writing another,
I am building an application (in vb6) that uses data from a third party
I'm writing a simple vb6 button which tests the access of the registry values.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.