If MethodMoneyInOut.Column(1) <> "Cheque" Then
If Len(Me.ChequeNo & "") <> 0 Then
MsgBox "Cannot change if ChequeNo contains data.", vbOKOnly
Me.MethodMoneyInOut.Undo
Cancel = True
End If
ChequeNo.Enabled = False
ChequeNo.Locked = True
ChequeNo.BackColor = 12566463
ChequeDate.Enabled = False
ChequeDate.Locked = True
ChequeDate.BackColor = 12566463
End If