Toggle Button Not Displayed Right

D

DDBeards

I am using a Toggle button to filter a list. When true I set the filter based
on a value the button represents. When the Toggle is true (pressed in) and
filter resoluts in at least matching recocrd, the button remains sunken.
However, if the filter returns no matching records the Toggle button become
flat and yet maintains the false value (0). I need the button to remain
sunken even if no records are found. Any ideas please?

DDBeards
 
A

Allen Browne

Presumably this toggle button is unbound (i.e. there is nothing in its
Control Source.)

When no records are returned, does the Detail section of your form go
completely blank?

It will do if no new records can be added (e.g. because the form's
AllowAdditions is No, or because the source query is non-editable.) When
this happens, Access gets confused and fails to understand the value of
controls in the Form Header or Form Footer, and they do not display
properly. More info:
Incorrect display of data
at:
http://allenbrowne.com/bug-06.html

If that is not the issue, you might need to set the DefaultValue of the
toggle button to -1 (if it should default to pressed) or 0 (if it should
default to unpressed.)
 

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

Top