First off, sorry in advance for the rambling post.
I have an inventory database with 3 main tables: 1 for additions to the inventory, 1 for current inventory, and 1 for removal from inventory. All 3 mostly have the same fields: line name, date, age, location, creator, number; the additions table also has date added, and the removals table has date removed. There are also various other lookup tables for several of the fields in the main tables.
When somebody wants to remove an item from inventory, I want them to be able to search the current inventory table to find the record of the specific item they want to remove. The problem is that this search needs to be able to be done with a variable number of criteria. For instance, one time a user may want to search by line name and date. Another time, by line name alone or date alone, or creator and date, etc. Pretty much any combination will be need to be used. I couldn't figure out to do this with a standard query you build in Access.
My half-baked plan (I'm pretty new to Access) is to have a form with combo or text boxes for each of the possible criteria. The user would enter whichever of the criteria they want to use, and then click a button to do the query. The VBA code for the button would check which of the criteria boxes have had info entered, and add any of that info to a query string, then execute the query.
That's where I'm stuck for now. Thanks for the help!