L
Leslie Isaacs
Hello All
I have a button with the following OnClick event:
If [Forms]![frm payments]![payment date].Value Is Null Then
[accounting month].ForeColor = vbRed
[accounting month].BackStyle = 1
[accounting month].BackColor = 65535
Else
[accounting month].ForeColor = 0
[accounting month].BackStyle = acNormal
[accounting month].BackColor = 16777215
End If
but each time I try to run this I get "Runtime error 424 - Object required",
with the first line of the condition (starting with "If") highlighted in
yellow.
I have tried with and without the [Forms]![frm payments]! in front of the
[payment date] part, and also with and without the .Value after [Payment
date], but always with the same result.
My VB skills are not great (obviously!) but I thought I was up to this.
I would be very grateful for any help.
Thanks
Les
I have a button with the following OnClick event:
If [Forms]![frm payments]![payment date].Value Is Null Then
[accounting month].ForeColor = vbRed
[accounting month].BackStyle = 1
[accounting month].BackColor = 65535
Else
[accounting month].ForeColor = 0
[accounting month].BackStyle = acNormal
[accounting month].BackColor = 16777215
End If
but each time I try to run this I get "Runtime error 424 - Object required",
with the first line of the condition (starting with "If") highlighted in
yellow.
I have tried with and without the [Forms]![frm payments]! in front of the
[payment date] part, and also with and without the .Value after [Payment
date], but always with the same result.
My VB skills are not great (obviously!) but I thought I was up to this.
I would be very grateful for any help.
Thanks
Les