I POSTED THIS ON THE FORMS GROUP, NO TAKERS, SO I AM POSTING HERE IN HOPES SOMEONE HAS A SOLUTION
I have a main form that contains a subform. the subform displays inventory items in datasheet view (subform must display the data in datasheet view per user mandate)
Currently, user has to use the scroll bar on the subform to scroll to the inventory description they want so they can do some data entry.
I am looking for a way that will allow the user to key into a field on the main form (or subform) that will do a search on a specific data column in the subform. the field we need to search on is text format (item description).
the user wants to be able to key in an alpha character and have the system do a start of field search and scroll automatically to the first item beginning with the character keyed. Likewise, when another character is keyed, for example, the user keys "AB" the system would cause the datasheet to scroll to the first item having an item desc starting with "AB"
I have VB code that will do this in the keydown event when the searched data is in a "listbox" however I cannot figure out how to do it when the data is being displayed in a subform in datasheed view.
Can anyone tell me if it can be done and provide a sample solution??
thanks !
Paul
I have a main form that contains a subform. the subform displays inventory items in datasheet view (subform must display the data in datasheet view per user mandate)
Currently, user has to use the scroll bar on the subform to scroll to the inventory description they want so they can do some data entry.
I am looking for a way that will allow the user to key into a field on the main form (or subform) that will do a search on a specific data column in the subform. the field we need to search on is text format (item description).
the user wants to be able to key in an alpha character and have the system do a start of field search and scroll automatically to the first item beginning with the character keyed. Likewise, when another character is keyed, for example, the user keys "AB" the system would cause the datasheet to scroll to the first item having an item desc starting with "AB"
I have VB code that will do this in the keydown event when the searched data is in a "listbox" however I cannot figure out how to do it when the data is being displayed in a subform in datasheed view.
Can anyone tell me if it can be done and provide a sample solution??
thanks !
Paul