I am trying to add to a table in my Access2000 mdb. The tblProject has 10 fields. I have a form in VB6 that has all 10 fields as text boxes. The user enters into the text boxes and clicks on save. The save command code is…
Private Sub cmdSave_Click()
On Error GoTo HandleErrors
rsProj.AddNew
‘doesn’t accept NULL FOR EACH field that is blank
rsProj!Active = chkActive.Value
rsProj!JobNo = txtJobNo.Text
rsProj!Date = txtDate.Text
rsProj!Client = txtClient.Text
rsProj!ProjectDirector = txtPD.Text
rsProj!SubjectMatter = txtSubjectMatter.Text
rsProj!ProjectMethodology = txtPM.Text
rsProj!MailoutDate = txtMailoutDate.Text
rsProj.Update
My problem is that if one of the text boxes is left blank it won’t write to the tblProject. It doesn’t like the NULL. Can someone lead me in the right direction? Thanks so much.