Hai every body,
I am using access 2003
Table Name: StatCounter
Field Name is :ENTRYDATE
Note: Field has no dates. field is empty
Combo boxes are :cmbFrom and CmbTo
Requirement is: the combo boxes have to be loaded with dates if dates exists in the field, otherwise it should not give any errors
But in run mode it is giving error 'invalid null value' No'94)
How to override this problem
Thanks in advance
I am using access 2003
Table Name: StatCounter
Field Name is :ENTRYDATE
Note: Field has no dates. field is empty
Combo boxes are :cmbFrom and CmbTo
Requirement is: the combo boxes have to be loaded with dates if dates exists in the field, otherwise it should not give any errors
But in run mode it is giving error 'invalid null value' No'94)
How to override this problem
Code:
Sub filldate()
Set rs = New ADODB.Recordset
connectDB
rs.Open "select ENTRYDATE FROM StatCounter", db, 3, 3
While rs.EOF = False
cmbFrom.AddItem rs!ENTRYDATE
cmbTo.AddItem rs!ENTRYDATE
rs.MoveNext
Wend
rs.Close
Set rs = Nothing
End Sub