Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21714

avoid invalid null value error No"94"

$
0
0
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

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

Thanks in advance

Viewing all articles
Browse latest Browse all 21714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>