I have an access database. i am inserting data from an excel worksheet
i have a very long insert (41 columns). in the middle of the pack i have several date fields.
Some of the date fields are null and should be null until the user or batch job updates the access db.
i have defined the following
[CODE}
Dim FirmCommitmentI ssued
FirmCommitmentI ssued =((Sheets("OD_A SSUMPTIONS").Ce lls(iRow, iCol + 25).Value))
If Len(FirmCommitm entIssued) = 0 Then
FirmCommitmentI ssued =null
End If
[/CODE]
however, i get an automation error, when this occurs
i know i could write a seperate insert statements and do a check so if null then insert without using this field. but then i would mess up some of the other logic.
is there anyway to insert a null or a default value say 1/1/1900
thanks
i have a very long insert (41 columns). in the middle of the pack i have several date fields.
Some of the date fields are null and should be null until the user or batch job updates the access db.
i have defined the following
[CODE}
Dim FirmCommitmentI ssued
FirmCommitmentI ssued =((Sheets("OD_A SSUMPTIONS").Ce lls(iRow, iCol + 25).Value))
If Len(FirmCommitm entIssued) = 0 Then
FirmCommitmentI ssued =null
End If
[/CODE]
however, i get an automation error, when this occurs
i know i could write a seperate insert statements and do a check so if null then insert without using this field. but then i would mess up some of the other logic.
is there anyway to insert a null or a default value say 1/1/1900
thanks
Comment