Not autofind in the description (1 Viewer)

hfsitumo2001

Member
Local time
Yesterday, 21:02
Joined
Jan 17, 2021
Messages
365
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
 

GPGeorge

Grover Park George
Local time
Yesterday, 21:02
Joined
Nov 25, 2004
Messages
1,877
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?
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 00:02
Joined
May 21, 2018
Messages
8,536
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.
 

hfsitumo2001

Member
Local time
Yesterday, 21:02
Joined
Jan 17, 2021
Messages
365
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
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 00:02
Joined
May 21, 2018
Messages
8,536
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

Top Bottom