Viewing 15 posts - 1 through 15 (of 35 total)
Suggestions from kaj and Jonathan AC Roberts (both) work! Thanks to for spending a few minutes to solve this. I didn't know about the EOMONTH() function.
January 19, 2023 at 9:05 pm
I tried both of your suggestion but I still didn't get the desired results. For the first one, I get something like
....
2019-08 3853.480000 ...
January 18, 2023 at 4:08 pm
The number of options is up to 7. I build a string based using check boxes in my sheet, so it will be consistent.
January 4, 2023 at 10:21 pm
STRING_SPLIT saves the day.... great. Thank you.
WHERE W.Warehouse IN (SELECT value FROM STRING_SPLIT(@WH1, ',') WHERE LEN([value])>0)
January 4, 2023 at 1:30 pm
Update; I found a way-around. When I do the same instructions through a store procedure (EXEC) I don't have this error. It is just when using it directly in a...
December 9, 2022 at 5:04 pm
It was like 3 months ago, but the code has been running since then until today. No known change whatsoever, all COLLATE info in properties is set to "Latin1_General_BIN". How...
December 9, 2022 at 3:02 pm
Yes, this is it. Thank you.
(sorry for the duplicate thread , the server was not responding on SUBMIT - I probably clicked twice)
October 22, 2021 at 3:47 pm
Ok, I guess that I just had to learn about stored procedures and how to start them with VBA. Done.
September 11, 2020 at 2:00 am
I detailed the query above. I have shown the Excel pivot table. I know what is a script, but I don't understand what is your request here.
July 10, 2020 at 11:13 pm
UNION ALL didn't achieve what I am looking for. Please see attachment. There are two warehouses, S0 and LU. On the first line, we can see that activity was...
July 9, 2020 at 5:37 pm
I love it when it works the first time! Thank you.
May 21, 2020 at 10:33 pm
This way is quite new to me and it works (same numbers of records).
September 11, 2019 at 12:16 pm
They are datetime type. I guess that removing the apostrophes around the dates was required - it seems to work now without them
September 10, 2019 at 8:07 pm
Hello Jonathan, I still get the same results but I adapted your method to another table and so far, so good.
SELECT ...
September 10, 2019 at 6:04 pm
Now my best shot based on David's reply. It works via a temporary table, but it is a bit complex. If there is a way to simplify, I would...
September 10, 2019 at 2:56 pm
Viewing 15 posts - 1 through 15 (of 35 total)