List boxes

P

Pwyd

What would cause a list box to have a black backround?

Its powered by a query. its back color is set to white, the font color is
set to black.
Sometimes for no reason i can understand, it blacks out the backround. Is
this because the query is timing out and thats the last snapshot answer it
has to the query's request?
 
W

Wayne-I-M

Hi

Sounds to me as if something (code) is selecting all the items in the list -
do you have any code running that may do this ?
 
P

Pwyd

Even if i click in the listbox elsewhere without using "mark" it still has
that backround. But only sometimes, not always, and not all the listboxes at
the same time.
 
W

Wayne-I-M

Hi

Databases just don't thing things they are not told to do. OK sometimes
unexpected stuff happens but this is as you have told your application to do
something that affects something else and you didn't expect it to. But you
have still told it to do it.

You MUST have some thing that is tell your list box to black out. If, as
you say it is only doing it "sometimes" thats the place to start. When is it
blacking out and when is it not. You need to work out (no one here can do it
for you as we can't see your app) what is the difference between the 2 points.

Sorry can't be any more help maybe someone else will jump in and give some
tips. Main thing to do is look at when something happens and when it doesn't
and then find out what the app have running - or not - at each time and this
will help you work out whats gone wrong in this case.
 
P

Pwyd

All right. But if i click in the listbox and try unmarking it, it will not
allow it. The list box is enabled, so i don't see how this is the problem.
 
W

Wayne-I-M

Try this

Check you query is fine
Creat a new blank form based on the query
Use the wizard to create your list box.
Only add one field at at time and each time it's doing what you expect.

Sorry I can't advise any thing else as I can't see your app.

Give it a try and if you see problems. Note where and how the problems
happen and creae a new quesiton here with as many details as you can.
 
P

Pwyd

Let me try asking this a different way. Is there a way to unset the focus on
a listbox every time someone tries selecting in the listbox? Or set the focus
elsewhere. OnFocus?
 
P

Pwyd

Here it is. Setting the list box to "locked" allows its selection but not
its focus.
This prevents it from ever being "blacked out"

There isn't any code in my form in modules, there are no get/set focuses.
 

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