Hey guys, I'm stuck on this one which should be simpler then I thought..
Access data page that calls an email field called "email". I just want it to be clickable so it launches outlook .. am I going about this the wrong way?
<SCRIPT language=vbscript>
Sub MakeFieldLookLikeLink(email)
On Error Resume Next
n = email.length-1
If (Err.Number <> 0) Then ' There is 1 (or no) field
email.style.cursor = "hand"
email.style.color = document.linkColor
email.style.textDecorationUnderline = True
Else
For i = 0 to n
email(i).style.cursor = "hand"
email(i).style.color = document.linkColor
email(i).style.textDecorationUnderline = True
Next
End If
End Sub
</SCRIPT>
<SCRIPT language=vbscript event=Current(info) for=MSODSC>
MakeFieldLookLikeLink(email)
</SCRIPT>
<SCRIPT for=email event=onclick language=vbscript>
If email.value > 0 Then
window.open = ????email.value??????
End if
End Sub
</SCRIPT>