Hi,
Further to my post yesterday about having a button that would open a website address from a text box.
I have got that going now with this code:
I now want the textbox to automatically take the HTTP:// out of any address the user may enter.
So, for example, if the user entered: http://www.access-programmers.co.uk, then the database takes out the http://.
Whereas, if the user entered www.access-programmers.co.uk, then the database would leave it alone.
Thanks anyone!
Further to my post yesterday about having a button that would open a website address from a text box.
I have got that going now with this code:
Code:
On Error GoTo Error
Application.FollowHyperlink "http://" & URL
Error:
If Err = 94 Then
Exit Sub
Else
Exit Sub
End If
I now want the textbox to automatically take the HTTP:// out of any address the user may enter.
So, for example, if the user entered: http://www.access-programmers.co.uk, then the database takes out the http://.
Whereas, if the user entered www.access-programmers.co.uk, then the database would leave it alone.
Thanks anyone!