Hello everyone,
I am new with access and I am trying to insert my first hyperlink into my form. Here is the situation: I have a checkbox on the form. When it is clicked, a have a messagebox appear that asks (Do you want to launch website www.blahblahbla h.com? Yes/No). I've gotten this far, I just don't know the VBA syntax to launch the website.
Can you help me?
Thanks!
3 5036 ADezii 8,834
Recognized Expert Expert
Hello everyone,
I am new with access and I am trying to insert my first hyperlink into my form. Here is the situation: I have a checkbox on the form. When it is clicked, a have a messagebox appear that asks (Do you want to launch website www.blahblahbla h.com? Yes/No). I've gotten this far, I just don't know the VBA syntax to launch the website.
Can you help me?
Thanks!
Assuming your Check Box is named chkNavigate, the User will be prompted to navigate to Yahoo.com, and if he/she responds Yes to the Prompt, he/she will be taken to Yahoo's Home Page. The Home Page will be opened in a New Window and the Hyperlink will be added to the History Folder. Any problems, let me know. - Dim strMessage As String, intResponse As Integer
-
-
strMessage = "Do you want to launch website www.Yahoo.com?"
-
-
If Me![chkNavigate] Then
-
intResponse = MsgBox(strMessage, vbQuestion + vbYesNo, "Navigation Prompt")
-
If intResponse = vbYes Then
-
Application.FollowHyperlink "http://Yahoo.com", , True, True
-
End If
-
Else
-
'no need to do anything here
-
End If
Thanks ADezii!! Works like a charm :).
ADezii 8,834
Recognized Expert Expert
Thanks ADezii!! Works like a charm :).
Glad it all worked out for you.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: aagee |
last post by:
Hi all
Can someone clue me in on this? I just noticed that following doesn't
work as it used to:
window.open(... "fullscreen=yes" ...)
Used to get a window that occupied the whole screen; now I get the
title bar and status bar too. Any ideas?
|
by: Jeremy Redmond |
last post by:
I want to prompt the user to confirm a delete, however, I am paranoid
that they may accidentally hit enter key and delete. (you know how
data enters will just cruise through messages)
Anyway.... any help would be greatly appreciated. I don't want to
have to use the "response" function instead.
Jeremy
|
by: Clint Stowers |
last post by:
Access 2k
Exporting a Query to as an excel file. No problem.
However, I keep getting the warning that the file already exists, Overwrite
Yes/No.
Yes, I want to overwrite the file. SetWarnings On/Off has no affect.
Any suggestions appreciated.
|
by: Grey |
last post by:
i use "this.Page.RegisterStartupScript()" to display the client-side script of confirmation box ...but I want to know that how can I know the user was clicked "YES" or "NO" as I need to do different action for these two choices.
Million Thanks..
|
by: tah |
last post by:
Hey,
Can someone please clarify, confirm, or set me straight on my
understanding of a standalone="yes" attribute in the xml version
element?
I assume it means that the xml document containing it is
standalone, and does not refer to any external document to define
types. In other words, it doesn't use an external dtd to validate any
types - everything used would be defined within the doc itself. In
other words, you would never see an xml...
| |
by: balakrishnan.dinesh |
last post by:
hi Frnds,
I need Confirm box with "yes" or "no" buttons, Is that
possible in JAVASCRIPT ,
Can anyone tell me the solution for this or anyother way to create
confirm box with "yes" or "no" button?
Thanks & Rgrds
Dinesh...
|
by: maheshnew2007 |
last post by:
Hi,
I have simple Ant's build.xml file, which contains fork="yes".
build.xml file:
<?xml version="1.0"?>
<project name="test" default="compile" basedir=".">
<property name="src" value="."/>
|
by: RSbroman |
last post by:
I have created an append query that I would like to run when the DB is opened.
However I do not want the end user to receive the "yes" "no" confirmation box when the query is being run.
Can anyone help me remove this confirmation box?
|
by: senthilkumarb |
last post by:
Hi every body,
i need a snippet in JavaScript to perform close window(browser)
when we close window it should give alert with "YES" & "NO" button if yes the window should stay still otherwise window should close
|
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...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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,...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |