J
jake
Hi,
I have created a mailto control (command button) on a form in Access using
the following code:
Private Sub Command31_Click()
On Error GoTo Err_Command31_Click
Application.FollowHyperlink "Mailto:" &
Exit_Command31_Click:
Exit Sub
Err_Command31_Click:
MsgBox Err.Description
Resume Exit_Command31_Click
End Sub
What I'd like to know is whether I can modify this code so that if the
'email' field in the source table is blank, the command button becomes
inoperative, preferably greyed out (at the moment it opens a new email with
the address field blank).
Any help greatly appreciated.
I have created a mailto control (command button) on a form in Access using
the following code:
Private Sub Command31_Click()
On Error GoTo Err_Command31_Click
Application.FollowHyperlink "Mailto:" &
Exit_Command31_Click:
Exit Sub
Err_Command31_Click:
MsgBox Err.Description
Resume Exit_Command31_Click
End Sub
What I'd like to know is whether I can modify this code so that if the
'email' field in the source table is blank, the command button becomes
inoperative, preferably greyed out (at the moment it opens a new email with
the address field blank).
Any help greatly appreciated.