M
Mark
Hi -
Access returns a "Syntax Error in INSERT INTO Statement" when the date field
contains a Null value.
Code:
strSQL = "Insert Into MyTable Values ( _
Chr$(34) & strName & Chr$(34) & ", " & _
Chr$(35) & datDOB & Chr$(35) & ", " & _
Chr$(34) & strState & Chr$(34) & ")
myDB.Execute strSQL
When datDOB is Null, Access returns the error.
Any way to make the statement work with a Null Date value?
Thanks,
MArk
Access returns a "Syntax Error in INSERT INTO Statement" when the date field
contains a Null value.
Code:
strSQL = "Insert Into MyTable Values ( _
Chr$(34) & strName & Chr$(34) & ", " & _
Chr$(35) & datDOB & Chr$(35) & ", " & _
Chr$(34) & strState & Chr$(34) & ")
myDB.Execute strSQL
When datDOB is Null, Access returns the error.
Any way to make the statement work with a Null Date value?
Thanks,
MArk