I have a form which contains a continuous subform. Next to every record in the subform is a button which opens an email to the contact in the current record. We don't have e-mail addresses for some contacts so I'd like the button to be invisible for those records. Using...
... either every button is visible or every button is invisible, depending on whether the current record contains an email address. Similar questions about text boxes on continuous subforms elsewhere in the forum have left me still stuck. Any ideas, please, or is this just not possible? It sounds such a simple thing to do.... given it can be done on a report so easily it would seem crazy if it can't be done on a form
Thanks very much for reading this far. Please help if you can
Code:
Private Sub Form_Current()
If Me.EMailAddress > "" Then
Me.EMailThisOne.Visible = True
Else
Me.EMailThisOne.Visible = False
End If
End Sub
... either every button is visible or every button is invisible, depending on whether the current record contains an email address. Similar questions about text boxes on continuous subforms elsewhere in the forum have left me still stuck. Any ideas, please, or is this just not possible? It sounds such a simple thing to do.... given it can be done on a report so easily it would seem crazy if it can't be done on a form
Thanks very much for reading this far. Please help if you can