gripper111
IS-IT--Management
I have a form in my Access DB and on txtDomain I have an after update code that creates a hyperlink in a caption box so I can easily go to the page. The system works fine but I want to lower case the link.
Here is the code:
***********
Private Sub txtDomain_BeforeUpdate(Cancel As Integer)
Call MakeLink
End Sub
Private Sub txtDomain_AfterUpdate()
Call MakeLink
End Sub
Private Sub Form_Current()
Call MakeLink
End Sub
' Link maker
Private Sub MakeLink()
With Me.lblHyperlink
.Caption = " & Me.txtDomain.Value
.HyperlinkAddress = .Caption
End With
End Sub
I am trying to force this caption to be lower case.
I inserted after .HyperlinkAddress = .Caption
the following
Me!txtDomain = Lcase(Me!txtDomain)
It error out at that line.
My syntax is obviously buggy. Could somebody provide a suggestion.
Thanks.
Here is the code:
***********
Private Sub txtDomain_BeforeUpdate(Cancel As Integer)
Call MakeLink
End Sub
Private Sub txtDomain_AfterUpdate()
Call MakeLink
End Sub
Private Sub Form_Current()
Call MakeLink
End Sub
' Link maker
Private Sub MakeLink()
With Me.lblHyperlink
.Caption = " & Me.txtDomain.Value
.HyperlinkAddress = .Caption
End With
End Sub
I am trying to force this caption to be lower case.
I inserted after .HyperlinkAddress = .Caption
the following
Me!txtDomain = Lcase(Me!txtDomain)
It error out at that line.
My syntax is obviously buggy. Could somebody provide a suggestion.
Thanks.