Mark Kubicki said:
possibly because dlookupis returning a hyperlink, i'm getting:
http://#http://www.datagnostics.com# as the value for strLink (note the 2
"#"s), and attempts to strip them are alluding me... any suggetions?
Yes, a hyperlink field is a text field made up of several parts separated by
'#' characters. You have to extract the second part, which is the actual
web address. Doug Steele's suggestion to use the Split function is good.
Here's an approach that should work (I think) whether the field is a
hyperlink field or plain text:
Dim strLink As String
strLink = DLookup("Website", "SomeTable") & vbNullString
If InStr(strLink, "#") > 0 Then
strLink = Split(strLink, "#")(1)
End If
If Left(strLink, 4) <> "http" Then
strLink = "http://" & strLink
End If
Application.FollowHyperlink srtrLink