I'm finding this a hard question to frame for some reason, though it seems a simple question, so I apologize in advance.
I have a database with one query for each item that we sell (it is cumbersome but necessary for the imports I am forced to do from Excel); each query is titled the name of the item. I want to create a simple process for adding new items, which involves (in part) creating a new query with the new item's name, and using that item name in a single criterion for a field within the query. Otherwise, the query will be identical to the other items' queries.
Is there a way to do this within VBA? I would imagine it involving the SQL and changing the item name there and then saving as a new query, but I don't really know where to begin. Any help you can provide would be appreciated!
I have a database with one query for each item that we sell (it is cumbersome but necessary for the imports I am forced to do from Excel); each query is titled the name of the item. I want to create a simple process for adding new items, which involves (in part) creating a new query with the new item's name, and using that item name in a single criterion for a field within the query. Otherwise, the query will be identical to the other items' queries.
Is there a way to do this within VBA? I would imagine it involving the SQL and changing the item name there and then saving as a new query, but I don't really know where to begin. Any help you can provide would be appreciated!