Not autofind in the description

hfsitumo2001

Member
Local time
Yesterday, 23:17
Joined
Jan 17, 2021
Messages
394
Hello,
I noticed that any supplies description of our supplies starting with "#", e.g "#15 Citra Cide" This will not be auto find, so we have to scroll down and search on the combo window. Anyone can help me why, and how can we solve the problem?.

Thank you

Frank
 
Is it true that ALL descriptions start with the pound sign? Or that SOME of them do?

You can eliminate the first character from the comparison by using Mid()

You mention combo window, so I assume this is referring to the row source for a combo box.

If the first case is true, you could try this.

SELECT SupplyItemID, Mid([SupplyDescription], 2)
FROM tblSupplyItems
ORDER BY Mid([SupplyDescription], 2)

However, if some descriptions do not have the pound sign in the initial position, the task could be harder.
What is the situation?
 
Not sure if you can fix that for a standard combobox.
You could turn it into a Find as You Type combobox and it will work. I just tested. So when you type # it not only goes to the first # but also filters the choices to only ones with #. I have a class module that you can load to turn any combo into an FAYT combobox.
 
However, if some descriptions do not have the pound sign in the initial position, the task could be harder.
Yes the situation is not all the supplies description have the starting #

Thank you,

Frank
 
I already have find as you type but still not work
Must not have good code then. Works as described!

Pound.png
 

Users who are viewing this thread

Back
Top Bottom