On May 18, 2:52 am, "Graham R Seach" <gseach@accessmvp_REMOVE.com>
wrote:
> If Not IsNull(Me!Listbox) Then
> MsgBox "Something was selected"
[quoted text clipped - 11 lines]
>
> - Show quoted text -
Thanks, i wish it was that simple, but it doesn't work. Even with
items selected it still sees it as Null. I also tried:
If not isnull(me.listbox.ItemsSelected) then
'do something
end if
Other ideas?
JEM - 18 May 2008 17:11 GMT
> On May 18, 2:52 am, "Graham R Seach" <gseach@accessmvp_REMOVE.com>
> wrote:
[quoted text clipped - 29 lines]
>
> - Show quoted text -
Duh! Here it is:
If me.listbox.ItemsSelected.Count > 0 then
'do something
End if
Graham R Seach - 19 May 2008 02:29 GMT
>>...i wish it was that simple...
It is that simple, but I assumed you had MultiSelect = No. My mistake!
By the way, ItemsSelected.Count won't work when MultiSelect = No and testing
occurs in the listbox's Click event.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
On May 18, 2:52 am, "Graham R Seach" <gseach@accessmvp_REMOVE.com>
wrote:
> If Not IsNull(Me!Listbox) Then
> MsgBox "Something was selected"
[quoted text clipped - 16 lines]
>
> - Show quoted text -
Thanks, i wish it was that simple, but it doesn't work. Even with
items selected it still sees it as Null. I also tried:
If not isnull(me.listbox.ItemsSelected) then
'do something
end if
Other ideas?