Open a specific web page from a command button

crann

Registered User.
Local time
Today, 06:21
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
 
Use:

Application.FollowHyperlink "www.yourwebsite.co.uk"
 
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
 
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
 
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
 
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
 
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

Back
Top Bottom