I work in shipping/receiving for a food shipment company and I'm trying to set up a database of all of our product lines. I'm new to Access (using 2010) but I've dabbled in VBA for Excel.
I've got a basic Form set up right now with the hopes that any user can come in and use this to look up an item and all information about it will be displayed for them. I've disabled everything in the form except a text box where they can enter in the item number. This pulls directly from the Item# field which is the primary key set to "no duplicates".
Right now the set up is that it automatically starts at the top of the list and they can either use the previous/next buttons to scroll through the products or they can enter the number they're looking for directly into the text box and the form will auto populate all infomation regarding that item.
What I'm having problems with is if they enter a number that isn't in the list, I'd like it to skip to the next available number in the list. For example the user enters 12005 into the text box but the closest item number to that is 12030. Is there any way to do this aside from changing the text box to a combo box and using it as a drop down list?
I've got a basic Form set up right now with the hopes that any user can come in and use this to look up an item and all information about it will be displayed for them. I've disabled everything in the form except a text box where they can enter in the item number. This pulls directly from the Item# field which is the primary key set to "no duplicates".
Right now the set up is that it automatically starts at the top of the list and they can either use the previous/next buttons to scroll through the products or they can enter the number they're looking for directly into the text box and the form will auto populate all infomation regarding that item.
What I'm having problems with is if they enter a number that isn't in the list, I'd like it to skip to the next available number in the list. For example the user enters 12005 into the text box but the closest item number to that is 12030. Is there any way to do this aside from changing the text box to a combo box and using it as a drop down list?