puzzlepiece87

 VBA Rubberducking

This chat has moved to Discord: discord.gg/MYX9RECenJ
Oct 5, 2020 20:37
@this (Nicely done and I am glad I was headed in the right direction. Didn't pick up that there was a separate OrderLineItems table, I thought that OrderLineItems was just a field in the RefundLineItems table and that's why Mat is talking about them not being easy to link at the line level. Still waiting for more details to emerge but nice take on the problem.)
Oct 5, 2020 19:58
7 for the original record, 7 for the matching record, 1 to put out results
Oct 5, 2020 19:58
That beats my record, my record is currently 15 for researching duplicate medical claims.
Oct 5, 2020 19:41
I'm going to stop flailing haha, I apologize for not understanding your current situation well enough to help even though you described it in medium detail already
Oct 5, 2020 19:40
You didn't say this explicitly but I'm assuming from what you said that RefundLineItems has OrderID in it and you are joining on that
Oct 5, 2020 19:40
That's probably hopelessly off base but maybe if you show us your existing join criteria that might help? You probably already stated them and I didn't understand.
Oct 5, 2020 19:38
I'm slow to understand, but based upon my best guess of what you've told me so far, I would do:

select distinct OrderID, sum(RefundAmount) as RefundAmount

from OrderTransactions as a

join RefundLineItems as b
on a.OrderID = b.OrderID
Oct 5, 2020 19:30
bye, sorry I couldn't help
Oct 5, 2020 19:29
or no?
Oct 5, 2020 19:29
So RefundLineItems has OrderID in it?
Oct 5, 2020 19:27
Oh oh oh okay
Oct 5, 2020 19:25
I'm goodish at SQL and feel optimistic about my chances to help once I understand what you're trying to accomplish.
Oct 5, 2020 19:25
Sorry for all the silly questions
Oct 5, 2020 19:25
Or maybe the correct amount is order $ - sum of refund $?
Oct 5, 2020 19:24
Which is the correct amount? The latest amount? The sum/total?
Oct 5, 2020 19:23
Are you trying to find refunds for a specific order-line and then find out what order that order-line corresponds to?
Oct 5, 2020 19:22
Are you trying to find if an order has any refunds in true/false format?
Oct 5, 2020 19:22
Dumb question, feel free to ignore: what specifically are you trying to find?
Oct 5, 2020 18:52
> The row limit is well known and documented. Calling the row limit a "glitch" is like saying "Ford Mustang glitch prevents cross-Atlantic road trip."
Oct 5, 2020 18:41
@Vogel612 Ah interesting, a CR games room.
Oct 5, 2020 18:34
And the UK has been competing with the US in being maximally 2020 so this is very on brand for them
Oct 5, 2020 18:33
Everyone wants the good stuff right now for free
Oct 5, 2020 18:33
Exactly
Oct 5, 2020 18:33
I'm just laughing at the consequences experienced for such a bad decision
Oct 5, 2020 18:33
Nope, happens way too often to be surprised
Oct 5, 2020 18:32
That seems like something that would make this group laugh and roll their eyes at the same time :P
Oct 5, 2020 18:32
Did you all get some laughs in out of hearing that the UK's screwed up coronavirus case counts came from using Excel as a database? xD
Aug 17, 2020 16:19
@MathieuGuindon Just signed in to see if I had any follow-up comments on a self-answered C# question and I immediately saw you helping people with VBA. Thanks for continuing to be such a wonderful presence in the community :)
2
Apr 13, 2020 17:32
@M.Doerner I looked into these over the weekend and may use them. Thank you!
Apr 8, 2020 23:58
I will also, of course, consider a more typical WPF architecture, but I'm first trying to make sure I understand how Tasks and Async/Await apply to the existing architecture.
Apr 8, 2020 23:56
@M.Doerner Thanks for all your feedback! Yes, Landing is a window that is closed after the user selects an initial option and is re-opened if they cancel their initial selection. I'm going to look into what you told me about explicit shutdown and see if that would be the best solution as far as allowing tasks to continue to run asynchronously without waiting on them.
Apr 7, 2020 13:22
@MathieuGuindon Oof, sorry you're only just now getting to WFH and having to work two jobs :(
Apr 7, 2020 13:19
@M.Doerner I have to wait for a task to finish because otherwise the program finishes executing and exits before it returns. I invoke them via Task.Run(() => )
Apr 6, 2020 22:19
Read your thread, misspoke in calling my program a console app because I don't use a console. What I actually meant is that all the work is being done largely independently of any kind of graphical interaction.
Apr 6, 2020 21:50
(In between juggling my other requests)
Apr 6, 2020 21:49
Right now I'm trying to follow up on what you two told me today by finding the very first command after the GUI is done (except the progress bar) and Tasking out from there instead.
Apr 6, 2020 21:48
I'll get it eventually.
Apr 6, 2020 21:48
Like misunderstanding the basics of offloading or something.
Apr 6, 2020 21:48
@HackSlash I'm almost certainly doing something really dumb.
Apr 6, 2020 21:47
I can't maintain it as a sole developer, too little use so far
Apr 6, 2020 21:47
I just finished taking command line stuff out actually
Apr 6, 2020 21:46
The graphics are just for user configuration and progress display
Apr 6, 2020 21:46
Seemed like it was an appropriate fit because most of the stuff my program does is CPU-bound text file editing
Apr 6, 2020 21:45
I learned it from VBA, mostly.
Apr 6, 2020 20:50
Manually controlling window instances from the code rather than letting WPF guide from one window to the next.
Apr 6, 2020 20:49
I think Mat favors the same approach himself.
Apr 6, 2020 20:45
@HackSlash xD
Apr 6, 2020 20:45
@HackSlash I'm using WPF with a Console-like starting point.
Apr 6, 2020 18:42
Because there were no other steps left in Main() to execute
Apr 6, 2020 18:41
In my memory, when I kicked off the ParallelFileProcessing without awaiting, it gave control back to the caller, Main() basically, and the program ended.