wh00t
Registered User.
- Local time
- Today, 05:39
- Joined
- May 18, 2001
- Messages
- 264
I have a strange listbox problem, I have simplified what I am doing so no red herrings are there.
I have a form with an unbound listbox (multi select is set to None), there are 4 columns.
For the click event I have MsgBox Me.Listbox.Column(0)
I have 2 entries in the listbox (1 & 2), when I click on '1' in the listbox I get a message of 1 and 2 when I click on '2' as you would expect.
Here's the problem, every now and then after I click on '1' and then click on '2' the message shows 1 and when I click back on '1' the message shows 2. So the message is showing the value of the previous click.
There appears to be no reason for this and looks as though it is a random thing.
The code I want to run is a little more complex and will cause problems if it triggers for the previously selected item.
Has anyone had this problem before or are aware of a way to avoid it?
I am running Access 2003 and have tried this on XP SP3, Vista 32, Win7 64.
I have a form with an unbound listbox (multi select is set to None), there are 4 columns.
For the click event I have MsgBox Me.Listbox.Column(0)
I have 2 entries in the listbox (1 & 2), when I click on '1' in the listbox I get a message of 1 and 2 when I click on '2' as you would expect.
Here's the problem, every now and then after I click on '1' and then click on '2' the message shows 1 and when I click back on '1' the message shows 2. So the message is showing the value of the previous click.
There appears to be no reason for this and looks as though it is a random thing.
The code I want to run is a little more complex and will cause problems if it triggers for the previously selected item.
Has anyone had this problem before or are aware of a way to avoid it?
I am running Access 2003 and have tried this on XP SP3, Vista 32, Win7 64.