VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Autocomplete Textbox plus listbox

Juanito Dado Jr  (4 Submissions)   Databases/Data Access/DAO/ADO   Beginner   Wed 3rd February 2021

Autocomplete textbox and listbox in one. Gets data from a recordset then populate the listbox. Autofills the textbox then synchronously highlights the listbox. Great autocomplete please vote for ME.

Side Effects
NOTE: Applicable to 32k of entries in the database. Anything larger than that, it will crash because listbox can't hold more than 32k of data. Cheers!!!

API Declarations
Option Explicit
'API call to listbox
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" ( _
ByVal hwnd As Long, _
ByVal wMsg As Long, _
ByVal wParam As Long, _
ByRef lParam As Any _
) As Long
Const LB_FINDSTRING = &H18F

Rate Autocomplete Textbox plus listbox (5(5 Vote))

Download Autocomplete Textbox plus listbox

Autocomplete Textbox plus listbox Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters