listbox visible problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Try:

If Me!ListBox.Visible = True Then
Me!ListBox.Visible = False
Else
Me!ListBox.Visible = True
End If
 
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
 
You are welcome. Make sure to check out Brendan’s post – all done in 1 line.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top