When I try to add a new record in the subform, I get this error:
"cannot contain a Null value because the required property for this field is set to True"
I don't understand why this Null error. I entered the following in a query against both tables and got good results (i.e., Not Null).
IIf(IsNull([TicketNum]),"Unknown","Not Null")
I can clear the popup box and continue and both tables get properly updated. Here's what I have behind the TicketNum field on the subform (the main form is "frmReqnWatch"):
Private Sub TicketNum_AfterUpdate()
On Error GoTo Err_TicketNum_AfterUpdate
Forms!frmReqnWatch.DLATicketNum = Me!TicketNum
Exit_TicketNum_AfterUpdate:
Exit Sub
Err_TicketNum_AfterUpdate:
MsgBox "Error #" & Err.Number & Err.Description
Resume Exit_TicketNum_AfterUpdate
End Sub
"cannot contain a Null value because the required property for this field is set to True"
I don't understand why this Null error. I entered the following in a query against both tables and got good results (i.e., Not Null).
IIf(IsNull([TicketNum]),"Unknown","Not Null")
I can clear the popup box and continue and both tables get properly updated. Here's what I have behind the TicketNum field on the subform (the main form is "frmReqnWatch"):
Private Sub TicketNum_AfterUpdate()
On Error GoTo Err_TicketNum_AfterUpdate
Forms!frmReqnWatch.DLATicketNum = Me!TicketNum
Exit_TicketNum_AfterUpdate:
Exit Sub
Err_TicketNum_AfterUpdate:
MsgBox "Error #" & Err.Number & Err.Description
Resume Exit_TicketNum_AfterUpdate
End Sub