The box the user will click will need to reference a URL box and it will be different for each record but not sure how I can get that to workUse Shell() for your non default browsers?
Any hyperlink will open with your default browser.
Can use Shell for Chrome as well, if not a hyperlink.
Of course, then there is Google
My first problem is I can't seem to get a link box working where it works based on the URL in the record not just one URLUse Shell() for your non default browsers?
Any hyperlink will open with your default browser.
Can use Shell for Chrome as well, if not a hyperlink.
Of course, then there is Google
Edit: for the FollowHyperlink, if a url, you need to prefix with the http:// or relevant prefix if not present.
I am confused do u have an example pleaseJust refer to the control where the url is located.
Research each command I mentioned, depending on whether you want your default browser to open the url or not.
Shell ("Path to your Firefox exe" & " " & Me.txtUrl)
Application.FollowHyperlink "http://" & Me.txtUrl
what do you mean by Skills that make me a nightmare for people like youSee if you can use Daniel's procedures listed here . . .https://www.devhut.net/vba-open-a-url-in-firefox-chrome/
Yes, that should work, depending on what is in txtUrl. Is the control even called that, as that was my name that I gave to the control, not knowing what you called yours?Code:Option Compare Database Private Sub Command54_Click() Application.FollowHyperlink "http://" & Me.txtUrl End Sub
is this correct mate as I can't seem to get it working with the button
This looks suspect to me?See if you can use Daniel's procedures listed here . . .https://www.devhut.net/vba-open-a-url-in-firefox-chrome/
Case 5
sProgName = "Microsoft Edge"
sExe = "Chrome.exe"
sCmdLineSwitch = " -tab "
How do I find out what my txtUrl is called as confused.Yes, that should work, depending on what is in txtUrl. Is the control even called that, as that was my name that I gave to the control, not knowing what you called yours?
As well as Option Compare Database, make sure you have Option Explicit on every module.
Put it all into a string variable, then you can debug.print it, and copy the output, and post it back here for viewing.
If you do not know the name of your control, or how to find it, you might want to fo back to basics and get a book on Basic Access.How do I find out what my txtUrl is called as confused.
I know how to make tables, forms, queries, reports and add primary and foreign keys and make relationship but lately just been getting into some new complex stuff I am struggling with.If you do not know the name of your control, or how to find it, you might want to fo back to basics and get a book on Basic Access.
The title is not meant to insult, but I was given the book Access 2007 for Dummies. You could look for one for your version.?
That will explain the basics of Access for your version.
That or look on YouTube for Steve Bishop videos on Access. You have to start somewhere, and not at the deep end.
Hang fire I have worked it out but does the control need to reference the object where the URL is or the name of the button control?If you do not know the name of your control, or how to find it, you might want to fo back to basics and get a book on Basic Access.
The title is not meant to insult, but I was given the book Access 2007 for Dummies. You could look for one for your version.?
That will explain the basics of Access for your version.
That or look on YouTube for Steve Bishop videos on Access. You have to start somewhere, and not at the deep end.
If you are trying to refer to the url, have a guess?Hang fire I have worked it out but does the control need to reference the object where the URL is or the name of the button control?