S
Scott_Brasted via AccessMonster.com
Good afternoon,
I have a form with job addresses and a command button that opens a second
form to add mailing addresses to the same record as the job addresses form.
It works fine. I want to have the command text red if a particular field is
empty in the second form. Here is the code I have tried.
If IsNull(Form!frmCustomerMailAddress.[mailAddress]) Then
Me.cmdMailAddress.ForeColor = vbRed
Else
Me.cmdMailAddress.ForeColor = 16384
End If
The vb code window opens and highlights this line in yellow when I move to
new record in the form with the command button:
If IsNull(Form!frmCustomerMailAddress.[mailAddress]) Then
I know I must a syntax problem but I do not know what t is.
Thanks,
Scott
I have a form with job addresses and a command button that opens a second
form to add mailing addresses to the same record as the job addresses form.
It works fine. I want to have the command text red if a particular field is
empty in the second form. Here is the code I have tried.
If IsNull(Form!frmCustomerMailAddress.[mailAddress]) Then
Me.cmdMailAddress.ForeColor = vbRed
Else
Me.cmdMailAddress.ForeColor = 16384
End If
The vb code window opens and highlights this line in yellow when I move to
new record in the form with the command button:
If IsNull(Form!frmCustomerMailAddress.[mailAddress]) Then
I know I must a syntax problem but I do not know what t is.
Thanks,
Scott