Hide URL on opening from VBA

M

Maria Joao

Hi,

I have a Database in Access 2000 that have a button for opening a file from
the server, using Internet Explorer.

Can I change the URL in the address bar, so that the person doesn't know the
correct URL?

Thanks

Maria Joao
 
D

Douglas J. Steele

You mean you want to change the URL that's showing in Internet Explorer?

I certainly hope you can't, as that would be a huge security hole!
 
M

Maria Joao

I realy want to change the URL

Thanks


Douglas J. Steele said:
You mean you want to change the URL that's showing in Internet Explorer?

I certainly hope you can't, as that would be a huge security hole!
 
W

Wayne-I-M

Douglas is right about the security thing - ???
Also would you open a page with no address - it just sound wrong.

You can use an IFrame but even this will put off people

<iframe src="Maria's Web Page.asp" name="iframename" id="iframename"
width="100%" height="100%" marginwidth="0" marginheight="0" align="left"
scrolling="yes" frameborder="0"></iframe>

Just set the size you want (change the source.html - to what it is)

But I would take douglas's advice and don't bother

up to you
 
D

Douglas J. Steele

Heck, you could add a WebBrowser control on the form and display the webpage
there, as opposed to within IE!

The point is, it would be a huge security hole if IE allowed you to display
one webpage but claim it was another.
 
J

John Spencer

Intriguing. Something I have not yet done.

One question, how (or where) do you set the source of the WebBrowser control
(Access 2003)?

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
 
W

Wayne-I-M

Maybe there is a really good reason why someone would want to hide the url

V strange
 
M

Maria Joao

Hi,

That's a good advice, Doug, But I don't know how to add a WebBrowser
control on the form.

Can you explain it better?

Thanks

Maria Joao
 
D

Douglas J. Steele

While the form is open in Design view, select Insert | ActiveX Control from
the menu. Scroll through the list of available controls until you find
Microsoft Web Browser. Select it, then click OK. That will add a browser
control to your form, with a rather cryptic name like ActiveXCtln (where n
is some number). My usual practice is to rename the control to something
like broWeb.

To load a web page into the browser, you use the Navigate method of the
control:

Me.broWeb.Navigate " http://www.microsoft.com "

Note that the spaces between the quotes and the URL shouldn't be there. I
had to add them, because Outlook Express made them disappear.

Note, too, that in order to reduce problems distributing your Access
application to people who might have a different version of Internet
Explorer on their machine, once you have everything working properly, you
can go into Tools | References (while in the VB Editor) and uncheck the
Microsoft Internet Controls reference that will have been added at the top.
 
Top