Solved

Pop up capture in Access Web Object

Posted on 2007-11-27
3
738 Views
Last Modified: 2013-11-29
What do I need to change in this code to make a popup appear within the access environment instead of a new internet explorer page?

This link provides more details, the solution there did not work unfortunately.

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Coding-Macros/Q_22965154.html
Private Sub Form_Load()
 

On Error GoTo Err_Form_Load

 

    Me.txtURL = "https://vsr.citigroup.net/virtualsecurityrequest"

 
 
 

    If Len(Me.txtURL) > 0 Then

        Me.ocxWebBrowser.Navigate Me.txtURL

    End If
 
 
 

End_Form_Load:

    Exit Sub

 

Err_Form_Load:

    MsgBox "Error " & Err.Number & ": " & Err.Description & vbCrLf & _

        " in " & Me.Name & ".Form_Load_Click", _

        vbOKOnly & vbCritical, "Smart Access Answer Column"

    Resume End_Form_Load

 

End Sub

Open in new window

0
Comment
Question by:wharrison359
  • 2
3 Comments
 
LVL 84
ID: 20358151
What do you mean by "a popup in the Access environment"? Are you referring to an IE popup? What's the popup supposed to do?
0
 

Author Comment

by:wharrison359
ID: 20359795
Yes, I would like to capture an IE Popup within access. The code above loads a webpage within access, but when I click on a link that leads to a popup, that popup always ends up outside of the access environment in a normal ie popup. I need the information in the popup to remain within access so that I can program run some code on it to append a database with user records. http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Coding-Macros/Q_22965154.html gives an example of a webpage you can put in the above code

" Me.txtURL = "insert new webpage here"

That will demonstrate how when you click on the link a new ie webpage opens outside of access.
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 20373000
I'm not sure you can force IE to place the popup in a particular location ... there may be some properties/methods of the WebBrowser control, or a sub-object in that control, but I don't really know.

This links explains the Naviagte method in details; perhaps you could use one or more of the Methods here to get what you want:

http://msdn2.microsoft.com/en-us/library/aa752093.aspx

You might also try posting a pointer question in the IE section for this (http://www.experts-exchange.com/Internet/Web_Browsers/Internet_Explorer/#browseZones); those guys do a LOT more with this type of thing than do we, and might be able to help.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now