Open a specific web page from a command button (1 Viewer)

crann

Registered User.
Local time
Today, 15:22
Joined
Nov 23, 2002
Messages
160
Hi need some help again guys,

I want to have a command button that when clicked opens a specific web page on a web site, i know i can insert a hyper link,. to the web page, but for presentaion purposes i want it to be accessed from a command button.

Is this possible, also i want to return to the database after viewing the webpage and not exit everything when i click close on the web page. (This is not my web page/site)

Any help greatly appreciated

JON
 

Fornatian

Dim Person
Local time
Today, 15:22
Joined
Sep 1, 2000
Messages
1,396
Use:

Application.FollowHyperlink "www.yourwebsite.co.uk"
 

crann

Registered User.
Local time
Today, 15:22
Joined
Nov 23, 2002
Messages
160
I Tried

Fornatian said:
Use:

Application.FollowHyperlink "www.yourwebsite.co.uk"

I tried this suggestion, i am getting a runtime erroe 409 appear.

At the moment i do not have any hyperlinks set up or and buttons linking to the web.

I only want my users to access a given web page through one command button on the Switchboard.

Any more help will be great.

Thanks
 

BukHix

Registered User.
Local time
Today, 10:22
Joined
Feb 21, 2002
Messages
379
Try it with the HTTP:// at the beginning of the URL and I think it will work for you.
Code:
Private Sub cmdOpenLink_Click()

Application.FollowHyperlink _
    "http://www.liberty1st.org"

End Sub
 

crann

Registered User.
Local time
Today, 15:22
Joined
Nov 23, 2002
Messages
160
Fantastic

BukHix said:
Try it with the HTTP:// at the beginning of the URL and I think it will work for you.
Code:
Private Sub cmdOpenLink_Click()

Application.FollowHyperlink _
    "http://www.liberty1st.org"

End Sub

I really am just learning, you guys who seem to know these answers are brilliant!!!!

Thanks a lot

Jon
 

crann

Registered User.
Local time
Today, 15:22
Joined
Nov 23, 2002
Messages
160
BukHix said:
Try it with the HTTP:// at the beginning of the URL and I think it will work for you.
Code:
Private Sub cmdOpenLink_Click()

Application.FollowHyperlink _
    "http://www.liberty1st.org"

End Sub

Any ideas how i can return to the database once i close the web page, with out having to reopen the database, like when you open a word.doc from acess database, when you close the file it returns you back to the database.

Help appreciated
 

sginzbar

New member
Local time
Today, 09:22
Joined
Mar 13, 2011
Messages
1
Try

Me.GuideStar.HyperlinkAddress = "URL"
Me.GuideStar.Hyperlink.Follow True
Me.GuideStar.HyperlinkAddress = ""

Where GuideStar is the name of the button control.

Any ideas how i can return to the database once i close the web page, with out having to reopen the database, like when you open a word.doc from acess database, when you close the file it returns you back to the database.

Help appreciated
 

Users who are viewing this thread

Top Bottom