listbox visible problem

A

Alex

Using the following code I can easily make the listbox invisible but i can't
make it visible


click_toggle()
if me!listbox.visible = yes then
me!listbox.visible = No
else
me!listbox.visible = yes
end if
end sub
 
M

Matt

Try:

If Me!ListBox.Visible = True Then
Me!ListBox.Visible = False
Else
Me!ListBox.Visible = True
End If
 
B

Brendan Reynolds

Try changing yes and No to True and False. Alternatively, you can replace
the whole If ... Else ... End If construct with one line of code ...

Me!listbox.Visible = Not Me!listbox.Visible
 
M

Matt

You are welcome. Make sure to check out Brendan’s post – all done in 1 line.
 
Top