Hello,
behind a listbox there is an SQL than gives a value to this listbox ...
something like
strSQL = " SELECT COUNT(Personeelsnummer) "
This is working like it should but now if the listbox is empty or the value is 0 I want to generate a msgbox ...
I tried something like this but it isn't working:
If Len(Me.txtcontroleaantal & "") = 0 Or Me.txtcontroleaantal.Value = 0 Then
How can I do this the right way?
Thanks in advance,
Sven.
behind a listbox there is an SQL than gives a value to this listbox ...
something like
strSQL = " SELECT COUNT(Personeelsnummer) "
This is working like it should but now if the listbox is empty or the value is 0 I want to generate a msgbox ...
I tried something like this but it isn't working:
If Len(Me.txtcontroleaantal & "") = 0 Or Me.txtcontroleaantal.Value = 0 Then
How can I do this the right way?
Thanks in advance,
Sven.