Hello again jdraw:
This is getting somehow "hairy" n.n"... lets see...
The uploaded DB models my issue in the sense that, I believe, it would be too excessive to upload the whole business DB (besides, it would be too heavy in MBs), to show the problem itself (too much stuff outside the main thing).
So.. mm... ok... yes, the info I need to exploit is in a single Table. This table integrates several business movements with materials and its weight (in Kgs), previously captured by other users. What I wish to do is that my Queries will "filter" the info in the table based in the criteria at the Form, which will in return concentrate several ID's based on the user selection. This would happen as follows:
* The raw info is in the Inventory Table (in this case, from the 1st of July/2016 until today)
a) The user will define the date margins for the query (With hours if needed).
b) The user will define if is interested in the Input or Output of the material from the Inventory.
c) The user will define the "family" (or color), of the materials, so the Query will know which materials return.
As all the materials has their own unique ID, I can do the filter based in the Color, transparent for the user the internal ID's. The matrix of materials and colors is as follows (coded in VBA at the DB uploaded, or yet, at each individual Query):
Black: 2, 3, 4, 5, 6, 7, 8, 56, 58
Blue: 13, 14, 15, 23, 34, 25, 27, 31, 57
Red: 9, 10, 11, 12, 16, 18, 19, 20, 21, 22, 26.28, 29, 30, 32, 33
Other: 17
As you can see, the individual queries already do the job... my wish is to understand how can I integrate all this in a single query (it was to me "obvious" that if the IN clause works directly with a sequence of values - in this case, Integers -, then, It would work in the same fashion with a parameter, but it seems that it would rather being impossible in a direct way as it will only receive a single String as parameter, unless we create a concatenated parameter, which I don’t have idea how to send it to the actual query besides this auxiliary TextBox).
... amm.. I don't know what else to say; is it still so blurry all this?
Thanks a lot for the patience and interest: this forum does not let me down with its professionalism in all the time I’ve been here
Regards,