On a subform's Current and After Update event I have this code;
It's purpose is to change the label headings (in datasheet view) depending on the value of cbProductName.Column(2). However it is not working and I suspect the problem is in the
What have I missed?
Note that I also have this event;
that is working, so I know that the Me.cbProductName.Column(2) is correct.
Code:
'Change title of Date out/In labels depending on Product Type
If Me.cbProductName.Column(2) <> "3" Then
Me.lblDateIn.Caption = "Date"
Me.lblDateOut.Caption = " "
End If
It's purpose is to change the label headings (in datasheet view) depending on the value of cbProductName.Column(2). However it is not working and I suspect the problem is in the
If Me.cbProductName.Column(2) <> "3" Then
part.What have I missed?
Note that I also have this event;
Code:
'Skip over Date Out column
Me.txtDateOut.Enabled = Me.cbProductName.Column(2) = "3"
that is working, so I know that the Me.cbProductName.Column(2) is correct.