473,417 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,417 software developers and data experts.

How to open browser from link in Access

I'm hoping someone can tell me what I'm missing about how to open a browser
and go to a website from a button or a link in Access 2000.

I've tried designating a field as "Hyperlink type" and typing in an URL.
I've tried using the Hyperlink field on the Button Properties sheet, and
I've tried using Visual Basic:

Application.FollowHyperlink "html://www.websitename.com",,True

and in all cases, Access just locks up and has to be shut down via the task
manager.

I suspect I need to open an instance of the browser or something, but I'm
only just starting with VB (all learned on a "need to know" basis), so I'm a
little foggy on that.

More details, in case they are helpful: What I'm wanting to do is go to a
vendor's website and look up their description based on their part number. I
thought I would build the url based on the first part of the vendor's search
string (stored with the vendor record) concatenated with the part number
(stored on the part record). There are hundreds of parts, so I'd like to
build this hyperlink on the fly, probably using a button and concatenating
the URL in Visual Basic.

I appreciate any assistance or direction....

Alice
--
Book collecting terms illustrated. Occasional books for sale.
http://www.mywingsbooks.com/
Nov 23 '05 #1
12 28174
Maybe this is just a typo

Maybe it's you problem

Application.FollowHyperlink "http://www.websitename.com",,True

Nov 23 '05 #2

"lylefair" <ly***********@aim.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Maybe this is just a typo

Maybe it's you problem

Application.FollowHyperlink "http://www.websitename.com",,True


I'm not sure I understand. The website isn't real...that was just an example
to show what I did in the code. Was there some other typo you saw?

Thanks.

Alice
Nov 23 '05 #3
You wrote html:// rather than http://.

Nov 23 '05 #4

"lylefair" <ly***********@aim.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
You wrote html:// rather than http://.


Ah...so I did. Well, that was just a typo. Probably resulting from
frustration at not being able to get anything to work!

Alice
Nov 23 '05 #5
Then give us a REAL address so that we can try to get IT to work.

For instance this works here in Canader.

Application.FollowHyperlink "http://www.ffdba.com", , True

Nov 23 '05 #6

"lylefair" <ly***********@aim.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Then give us a REAL address so that we can try to get IT to work.

For instance this works here in Canader.

Application.FollowHyperlink "http://www.ffdba.com", , True

Sorry...wasn't trying to be difficult. Here is my complete code, attached to
the button named btnVendorDesc with the OnClick event and using the website
you suggested:

Private Sub btnVendorDesc_Click()
Application.FollowHyperlink "http://www.ffdba.com", , True
End Sub

Nothing happens. Access just locks up, and I have to close it with the
windows task manager. I know I have to be missing something simple, but I
just don't know what it is.

Any suggestions?

Thanks...
Alice

Nov 23 '05 #7
Not really. I think we need help here.
I think Applciation.FollowHyperlink uses Internet Explorer rather than
the default browser so if there were anything wrong with your IE that
would probably cause a problem.
And who knows if there is some other code problem that might be brought
up by this call; I expect you've tried doing a compile, perhaps even a
decompile first?
And today, firewalls and anti-viruses and internet-security can shut
down almost anything.
But I expect we have to wait for someone who has had this problem to
speak up.

Nov 23 '05 #8

"lylefair" <ly***********@aim.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Not really. I think we need help here.
I think Applciation.FollowHyperlink uses Internet Explorer rather than
the default browser so if there were anything wrong with your IE that
would probably cause a problem.
And who knows if there is some other code problem that might be brought
up by this call; I expect you've tried doing a compile, perhaps even a
decompile first?
And today, firewalls and anti-viruses and internet-security can shut
down almost anything.
But I expect we have to wait for someone who has had this problem to
speak up.


Well, IE is my default browser, so that's not the problem. The browser just
isn't launching at all. I know there are a thousand things that could be
preventing this from working...hopefully someone has one of those helpful
debugging links to the MS website....

Alice
Nov 23 '05 #9
Have you tried

WebBrowser.Navigate2 "http://www.websitename.com"

replacing above "WebBrowser" with the name of your control? Or with
substitution something like

WebBrowser.Navigate2 "http://" & vendorURL & partNUM & Me.OpenArgs

my-wings wrote:
I'm hoping someone can tell me what I'm missing about how to open a browser
and go to a website from a button or a link in Access 2000.

I've tried designating a field as "Hyperlink type" and typing in an URL.
I've tried using the Hyperlink field on the Button Properties sheet, and
I've tried using Visual Basic:

Application.FollowHyperlink "html://www.websitename.com",,True

and in all cases, Access just locks up and has to be shut down via the task
manager.

I suspect I need to open an instance of the browser or something, but I'm
only just starting with VB (all learned on a "need to know" basis), so I'm a
little foggy on that.

More details, in case they are helpful: What I'm wanting to do is go to a
vendor's website and look up their description based on their part number. I
thought I would build the url based on the first part of the vendor's search
string (stored with the vendor record) concatenated with the part number
(stored on the part record). There are hundreds of parts, so I'd like to
build this hyperlink on the fly, probably using a button and concatenating
the URL in Visual Basic.

I appreciate any assistance or direction....

Alice

Nov 23 '05 #10
Me!YourButtonName.HyperlinkAddress = http://www.YourWebSite.com/index.htm

That one works for me.

dixie

"my-wings" <my******@TAKEOUTatt.net> wrote in message
news:P7*******************@bgtnsc05-news.ops.worldnet.att.net...
I'm hoping someone can tell me what I'm missing about how to open a
browser and go to a website from a button or a link in Access 2000.

I've tried designating a field as "Hyperlink type" and typing in an URL.
I've tried using the Hyperlink field on the Button Properties sheet, and
I've tried using Visual Basic:

Application.FollowHyperlink "html://www.websitename.com",,True

and in all cases, Access just locks up and has to be shut down via the
task manager.

I suspect I need to open an instance of the browser or something, but I'm
only just starting with VB (all learned on a "need to know" basis), so I'm
a little foggy on that.

More details, in case they are helpful: What I'm wanting to do is go to a
vendor's website and look up their description based on their part number.
I thought I would build the url based on the first part of the vendor's
search string (stored with the vendor record) concatenated with the part
number (stored on the part record). There are hundreds of parts, so I'd
like to build this hyperlink on the fly, probably using a button and
concatenating the URL in Visual Basic.

I appreciate any assistance or direction....

Alice
--
Book collecting terms illustrated. Occasional books for sale.
http://www.mywingsbooks.com/

Nov 23 '05 #11
I might need to expand on that previous post. In the buttons On Click
event, type =set_my_link()
Now, in the form module, add the following.

Private Function set_my_link()
Me!YourButtonName.HyperlinkAddress = http://www.YourWebSite.com/index.htm
End Function

That should work for that address.

dixie

"Dixie" <di***@dogmail.com> wrote in message
news:43********@duster.adelaide.on.net...
Me!YourButtonName.HyperlinkAddress = http://www.YourWebSite.com/index.htm

That one works for me.

dixie

"my-wings" <my******@TAKEOUTatt.net> wrote in message
news:P7*******************@bgtnsc05-news.ops.worldnet.att.net...
I'm hoping someone can tell me what I'm missing about how to open a
browser and go to a website from a button or a link in Access 2000.

I've tried designating a field as "Hyperlink type" and typing in an URL.
I've tried using the Hyperlink field on the Button Properties sheet, and
I've tried using Visual Basic:

Application.FollowHyperlink "html://www.websitename.com",,True

and in all cases, Access just locks up and has to be shut down via the
task manager.

I suspect I need to open an instance of the browser or something, but I'm
only just starting with VB (all learned on a "need to know" basis), so
I'm a little foggy on that.

More details, in case they are helpful: What I'm wanting to do is go to a
vendor's website and look up their description based on their part
number. I thought I would build the url based on the first part of the
vendor's search string (stored with the vendor record) concatenated with
the part number (stored on the part record). There are hundreds of parts,
so I'd like to build this hyperlink on the fly, probably using a button
and concatenating the URL in Visual Basic.

I appreciate any assistance or direction....

Alice
--
Book collecting terms illustrated. Occasional books for sale.
http://www.mywingsbooks.com/


Nov 23 '05 #12
Thanks to everyone for their help. It WAS a simple solution, and lylefair
had it right.... it was my firewall, which used to tell me when it was
blocking a new application, but doesn't seem to do so after the last update.

Sorry to have taken up everyone's time...the solution was on my own PC after
all!

Alice
"Dixie" <di***@dogmail.com> wrote in message
news:43********@duster.adelaide.on.net...
Me!YourButtonName.HyperlinkAddress = http://www.YourWebSite.com/index.htm

That one works for me.

dixie

"my-wings" <my******@TAKEOUTatt.net> wrote in message
news:P7*******************@bgtnsc05-news.ops.worldnet.att.net...
I'm hoping someone can tell me what I'm missing about how to open a
browser and go to a website from a button or a link in Access 2000.

I've tried designating a field as "Hyperlink type" and typing in an URL.
I've tried using the Hyperlink field on the Button Properties sheet, and
I've tried using Visual Basic:

Application.FollowHyperlink "html://www.websitename.com",,True

and in all cases, Access just locks up and has to be shut down via the
task manager.

I suspect I need to open an instance of the browser or something, but I'm
only just starting with VB (all learned on a "need to know" basis), so
I'm a little foggy on that.

More details, in case they are helpful: What I'm wanting to do is go to a
vendor's website and look up their description based on their part
number. I thought I would build the url based on the first part of the
vendor's search string (stored with the vendor record) concatenated with
the part number (stored on the part record). There are hundreds of parts,
so I'd like to build this hyperlink on the fly, probably using a button
and concatenating the URL in Visual Basic.

I appreciate any assistance or direction....

Alice
--
Book collecting terms illustrated. Occasional books for sale.
http://www.mywingsbooks.com/


Nov 23 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mr. Clean | last post by:
Can I to get a list of all open browser windows using Javascript ? Let's say: my html opens 4 new windows (using the function open), is there a way to get an array windows or documents or...
13
by: Dave Holmes | last post by:
Is there a way to keep an other application from opening a link in a browser where I am running an ASP application? For example, I have an ASP application open in a browser. If I click on a link...
6
by: WindAndWaves | last post by:
Hi guys Thank you for all your previous answers. My new question is as follows: how do I create a folder/file browser in access 2003. That is, I would like the user to locate several files...
2
by: Jean-Yves | last post by:
Hi. I would like to open an ASP.NET page from a Web Method like this: Form my WinForm App: OpenLink("Select * From Customers", "http://myserver/ReportApp/ShowReport.aspx") <(Web Method)> _...
1
by: vba man | last post by:
I've used the following code to open a browser window and read the data to a file. I know there is another way using a query, but that doesn't work for this application. What I'd like to be able...
4
by: bbdobuddy | last post by:
Hi, How do I open a Microsoft Access 2003 form from Visual Basic.net Thanks in advance bbdobuddy
8
by: Axel Gallus | last post by:
I want to realize the following.... The user logs in to a certain webpage (username & password). Then the user sees a html page with a link in it. This link is a target="_blank" link, so it...
0
by: balu435 | last post by:
Hi I used the following code to enter values to an already open browser using VBA. Dim IeBrow As InternetExplorer Dim IeDoc As Object Set IeBrow = New InternetExplorer IeBrow.Visible = True ...
0
by: wassimdaccache | last post by:
Hello Experts; I have a wireless router TP-link I made security phrase for it. What i am trying to do is to configure a d-link access point as a repeater for the TP-link and always not...
1
by: Bhavs | last post by:
Hi, I need to open a link in a new window using xslt. With the code I am using, the link opens up in the same page. I want it to be opened in a new browser window. I am using <a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.