by Marcos Camargo (2 Submissions)
Category: Databases/Data Access/DAO/ADO
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (17 Votes)
This is a veeeery simple code to make one autocomplete textbox that gets the first letters you typed and searches for the most similar word from a table and then completes the rest. No API Calls, No Classes, Only few lines of code in 2 events...Simply save it as a module (.bas) and add it to your project
Assumes
'There are two functions in the module
'The Function CheckIsDelOrBack checks it the key that
'was pressed was Delete or BackSpace (so the code will be ignored)
'The Other one (Autocomplete) ... autocompletes the textbox!!
Download Database Autocomplete TextBox Module (No API) (23 KB)