Originally posted by Darren Savery
Hi,
I have edited the 'Insert Opportunity' form and added 2 new fields : one is a LookupEdit and one is a text box. Basically, I have a 'source' field (the lookup) and then a free text box allowing the user to say exactly what the source of the lead was.
I want the text box to be hidden by default and only appear when someone populates the lookup box.
The code I tried is this :
Sub lveSourceClick(Sender) If lveSource.Lookup = "" Then Exit Sub
If lveSource.Lookup <> "" then txtSourceEvent.Visible = True lblSourceEvent.Visible = True Else txtSourceEvent.Visible = False lblSourceEvent.Visible = False End If
End Sub
I cannot get this to work.
Can anyone help? |