473,811 Members | 2,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Fol lowHyperlink "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 28464
Maybe this is just a typo

Maybe it's you problem

Application.Fol lowHyperlink "http://www.websitename .com",,True

Nov 23 '05 #2

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

Maybe it's you problem

Application.Fol lowHyperlink "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.goo glegroups.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.Fol lowHyperlink "http://www.ffdba.com", , True

Nov 23 '05 #6

"lylefair" <ly***********@ aim.com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.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.Fol lowHyperlink "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_C lick()
Application.Fol lowHyperlink "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.Fol lowHyperlink 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******** *************@g 43g2000cwa.goog legroups.com...
Not really. I think we need help here.
I think Applciation.Fol lowHyperlink 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...hopef ully someone has one of those helpful
debugging links to the MS website....

Alice
Nov 23 '05 #9
Have you tried

WebBrowser.Navi gate2 "http://www.websitename .com"

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

WebBrowser.Navi gate2 "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.Fol lowHyperlink "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

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

Similar topics

1
13972
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 somthing where i can access all of them ?
13
1877
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 in an email message, Outlook "hijacks" the open browser and opens opens the link in it. Is there a way to prevent this? To somehow identifiy that browser window as "off limits" to another app? Thanks.
6
22455
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 (the back-end, logo, etc...) and save the path. Cheers Nic.
2
1380
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)> _ Public Function OpenLink(ByVal sQuery As String, ByVal sURL As String) As boolean ..... SomeCode to Open Internet Explorer with the URL
1
1787
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 to do is select a this open browser after opening other explorer windows. This would be similar to the command: Workbooks("objects.xls").Activate
4
12288
by: bbdobuddy | last post by:
Hi, How do I open a Microsoft Access 2003 form from Visual Basic.net Thanks in advance bbdobuddy
8
1612
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 would open in a new Internet Explorer window. Normally the user has the possibility to go on that link (without clicking with left mousebutton), pressing the right mouse button, going on copy location, open a new browserwindow by
0
1857
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 IeBrow.Navigate ("www.rediffmail.com") IeDoc.loginform.login.Value = userid IeDoc.loginform.passwd.Value = passwd ..
0
2068
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 working :(!!! while i am scanning in my access point (d-link) I see the tp-link and I am able to connect but when I scan using my wifi on my laptop I'm not seeing the D-link . Why ?
1
2417
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 href="http://www.google.com"> to open the link. Pls Help
0
9722
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10393
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10124
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.