Private Sub updt_Click()
If Not IsNumeric(Me.rejqty) = True Then
MsgBox ("Please Enter the Rejected Quantity in Number(s)")
Me.rejqty.SetFocus
Exit Sub
End If
If (Me.ccid) = "" Then
Exit Sub
End If
If IsNull(Me.stdate) Then
Exit Sub
End If
If (Me.rejqty) = "" Then
Exit Sub
End If
If (Me.Desc) = "" Then
Exit Sub
End If
If IsNull(Me.descdate) Then
Exit Sub
End If
If (Me.rcause) = "" Then
Exit Sub
End If
If IsNull(Me.rdate) Then
Exit Sub
End If
If (Me.scontain) = "" Then
Exit Sub
End If
If IsNull(Me.shdate) Then
Exit Sub
End If
If (Me.lcontain) = "" Then
Exit Sub
End If
If IsNull(Me.ldate) Then
Exit Sub
End If
If (Me.caimp) = "" Then
Exit Sub
End If
If IsNull(Me.cadate) Then
Exit Sub
End If
If (Me.qplan) = "" Then
Exit Sub
End If
If IsNull(Me.qdate) Then
Exit Sub
End If
If (Me.verify) = "" Then
Exit Sub
End If
If IsNull(Me.vdate) Then
Exit Sub
End If
CurrentDb.Execute "Insert INTO tblNCM(CCID, Startdate, ItemID, Rejqty, Description, Descdate, Rootcause, Rootdate, Shortcontain, Shortdate, Longcontain, Longdate, CAImplementation, CAImpdate, Qualityplan, Qualitypdate, Verification, Verifdate)" & _
" Values ( '" & Me.ccid & "' , #" & Me.stdate & "# , '" & Me.pnumlist & "' , " & Me.rejqty & " , '" & Me.Desc & "' , #" & Me.descdate & "# , '" & Me.rcause & "' , #" & Me.rdate & "# , '" & Me.scontain & "' , #" & Me.shdate & "# , '" & Me.lcontain & "' , #" & Me.ldate & "# , '" & Me.caimp & "', #" & Me.cadate & "# , '" & Me.qplan & "', #" & Me.qdate & "# , '" & Me.verify & "' , #" & Me.vdate & "#)"