Don't open url if null

jamescullis

Registered User.
Local time
Today, 19:33
Joined
Jun 2, 2014
Messages
38
HI all,

I'm opening a browser at a specific page from the form using the following VBA. Just wondering if I can stop the field from being a hyperlink if the value is NULL?

CreateObject("Shell.Application").Open "http:/google.com" & Me.OpenURI

thanks in advance.
 
Code:
If not isnull(Me.OpenURI) then
CreateObject("Shell.Application").Open "http:/google.com" & Me.OpenURI
End If
 

Users who are viewing this thread

Back
Top Bottom