philfloyduk
Board Regular
- Joined
- Jan 6, 2011
- Messages
- 82
Hi.
I am trying to use the .additem function for a combobox on a form I use to search our stock but it is giving me blank results.
For example, I will put a particular make and model in one combobox which has a search command button next to it. The command button locates the correct item on a loop and counts each result under (DIM) SR until it's found them all. On each succesful find I have used:
cbStockIDResults.AddItem Cells(rw, 1)
When expanding cbStockIDResults the list has gone from one blank result before the search to several but the text is not there. The number of blank results tallys up with the search result count found in DIM SR (which I have displayed using a label).
Whilst I was trying to figure out where it was going wrong I set up a cbStockIDResults_change routine to put the information in to a random textbox to see if information is there and it puts the correct stock number in. I have gone as far as checking that the colour of the text in the properties of the combobox is black but still no luck.
Any ideas?
Any help will be greatly appreciated.
Phil
I am trying to use the .additem function for a combobox on a form I use to search our stock but it is giving me blank results.
For example, I will put a particular make and model in one combobox which has a search command button next to it. The command button locates the correct item on a loop and counts each result under (DIM) SR until it's found them all. On each succesful find I have used:
cbStockIDResults.AddItem Cells(rw, 1)
When expanding cbStockIDResults the list has gone from one blank result before the search to several but the text is not there. The number of blank results tallys up with the search result count found in DIM SR (which I have displayed using a label).
Whilst I was trying to figure out where it was going wrong I set up a cbStockIDResults_change routine to put the information in to a random textbox to see if information is there and it puts the correct stock number in. I have gone as far as checking that the colour of the text in the properties of the combobox is black but still no luck.
Any ideas?
Any help will be greatly appreciated.
Phil