Hi,
I have a form that has been created from a table.
One of the boxes in the form is the IncomeSubjective, which I have used a Dloopup within the On Current event to get the correct Income Subjective, which it is doing, as I can see the subjective in the box.
However when I go to save the form, it tells me that the field "tblIncome.IncomeSubjective' cannot contain a null value because the Required property for this fiels is set to True. Enter a value in this field.
I don't understand as it isn't null I can see it there. I am wondering whether there is somthing missing from my code (below) that passes the code to the correct place???
Private Sub Form_Current()
Me.IncomeSubjective = DLookup("[Subjective]", "tblIncomeSubjective", "[ExpSubjective] = '" & Forms![frmCommitments]![cmbSubjective] & "'")
End Sub
Any help would be great.
I have a form that has been created from a table.
One of the boxes in the form is the IncomeSubjective, which I have used a Dloopup within the On Current event to get the correct Income Subjective, which it is doing, as I can see the subjective in the box.
However when I go to save the form, it tells me that the field "tblIncome.IncomeSubjective' cannot contain a null value because the Required property for this fiels is set to True. Enter a value in this field.
I don't understand as it isn't null I can see it there. I am wondering whether there is somthing missing from my code (below) that passes the code to the correct place???
Private Sub Form_Current()
Me.IncomeSubjective = DLookup("[Subjective]", "tblIncomeSubjective", "[ExpSubjective] = '" & Forms![frmCommitments]![cmbSubjective] & "'")
End Sub
Any help would be great.