R
Regnab
I've got a listbox which operates off a query:
SELECT FileName.fn_Filename, FileName.fn_Filepath FROM FileName WHERE
(((FileName.fn_Filename) Like "*" & Forms!frmSearch!txtUserInput &
"*"));
The idea is that the user can type in "N4" and all file names with that
sequence will display in the list box from which the user can then make
their choice. Works well when I assign the Me.lstOutput.Requery to a
button.
However, I'd like it to update as each letter is entered into the text
box. The only way I've been able to do that is to assign 'Me.refresh'
to a key stroke event in the text box. I tried requery without it but
Access doesn't seem to register that data has been entered.
The Me.Refresh works, but also selects the previous input in the text
box after each key stroke - effectively causing the user to type over
their previous letter. So if someone types "N44Fleet", only the 't' is
displayed when they have finished. The query still works, but I'd like
the full word displayed. As such, I'm wondering if there is some way to
use the value of the text box without refreshing or if not, how I can
keep typing without over-writing the previous input.
Thanks for all your help,
Cheers
Reg
SELECT FileName.fn_Filename, FileName.fn_Filepath FROM FileName WHERE
(((FileName.fn_Filename) Like "*" & Forms!frmSearch!txtUserInput &
"*"));
The idea is that the user can type in "N4" and all file names with that
sequence will display in the list box from which the user can then make
their choice. Works well when I assign the Me.lstOutput.Requery to a
button.
However, I'd like it to update as each letter is entered into the text
box. The only way I've been able to do that is to assign 'Me.refresh'
to a key stroke event in the text box. I tried requery without it but
Access doesn't seem to register that data has been entered.
The Me.Refresh works, but also selects the previous input in the text
box after each key stroke - effectively causing the user to type over
their previous letter. So if someone types "N44Fleet", only the 't' is
displayed when they have finished. The query still works, but I'd like
the full word displayed. As such, I'm wondering if there is some way to
use the value of the text box without refreshing or if not, how I can
keep typing without over-writing the previous input.
Thanks for all your help,
Cheers
Reg