« first day (107 days earlier)      last day (1432 days later) » 

12:25 AM
@ashleedawg I put arrayFilePaths = Range("G4:G5") in my code by getting subscript out of range on here OK = primaryDoc.Open(arrayFilePaths(0))
 
 
5 hours later…
5:49 AM
@excelguy oh is this Word VBA ? I didn't catch that before.
So, **GitHub yelled at me** when I went to login to it, and then forced me to change my password because, it said, it noticed that I used the same password to create a different account on an unrelated site. (Only one I can think of is the Instragram account I created recently.)

I'm not sure how I feel about major unrelated tech companies comparing my passwords with each other...

Has @anyone else experienced this between any sites?
 
6:57 AM
weeeeeeeeeeeeeeeeeeeeeeeeeeee
:dush:
@ashleedawg What I love is most of those images are down to you!
 
@QHarr I noticed that too , lol
 
:-)
 
7:13 AM
 
\o all
 
\o
 
user8622974
o/
 
morning!
 
user8622974
morning!
 
7:22 AM
( ͡ ° ͜ʖ ͡ ° )
 
I am very unimpressed with my first udemy course!
I reckon the instructor just took the money and fled.
Anyone has positive experiences with such things?
DataCamp was in some ways better but spoon feeds too much.
Go back to the MIT Opencourseware which is much better and free - me thinks!
 
I've only done Lynda.com and such. They're useful to me (the ones I followed at least)
 
@ErikvonAsmuth Sounds a bit like Avon!
ooohhhh.... just had a peek.....looks interesting....
 
Yeah. They're at a weird spot since they got bought by LinkedIn though. Since now they're more used for seeding a linkedin profile with courses I think
 
hmmmmmmmmmmmmmmm
little red flag pops up
🚩
£14.99 going rate for VBA courses with Udemy
 
7:42 AM
Lynda.com at least has a free month, so you can see if the course is something for you. But it's an entirely different payment model
Wow, they've gotten a lot more expensive though
 
7:57 AM
@ErikvonAsmuth You did a programming course?
 
Yeah, long time ago. I've learned PHP and MySQL using Lynda.com.
Everything I've learned is a bad practice now and should never be used though.
 
Lol
I did the following series which I really enjoyed:
 
8:59 AM
Gaah! After an hour of debugging, I discovered Access just randomly uses the wrong parameter order in one of my queries. And I was passing parameters by position...
 
9:16 AM
naughty naughty!
 
Zoe
9:44 AM
Got the Kotlin tag bronze badge :D
3
 
Congratulations!
 
Zoe
Thanks ^^
 
10:12 AM
@Zoe Hooray! Congrats!
@Zoe Only 55 others share that honour. That's 0.0006% of S.O.
 
Zoe
:o
now gonna go for silver :>
 
@Zoe and there's only 13 silver and 6 gold. Source That's compared to about 400-500 for VBA
and about 8000 for javascript
Gold is the only one that actually does anything... Silver and Bronze are just bragging rights.
 
Zoe
yeah
 
I'm getting there slowly for VBA
The gold badge I'm closest to is the tag I petitioned to have removed... lol...
 
Zoe
Ouch
But if it merges into VBA, you'd still get the score moved to that tag
 
11:19 AM
hey @Erik, question for ya...
do you happen to know if the order of the WHERE criteria make a differenece?
I assume sql reorganizes them as logically as it can... like if one of the criteria will "obviously" exclude all records, it must try to avoid running the extraneous criteria...?
 
It shouldn't make a difference in the result (as long as all the ANDs and ORs are the same)
 
no, but time-wise
 
Well, the optimizer gets to work, and does things like are there constants at both side -> that first, indexed column + constant -> index seek -> that second, etc.
I assume there are edge-cases where the optimizer doesn't know what to do and it can make a difference, but I wouldn't know any
 
riiight, that sounds familiar now that you mention it. It's been a long time since I had an cs theory training
 
If you're using T-SQL you can ask for the execution plan of a query, which gives insight into what the optimizer is doing. Even SEDE lets you get execution plans
(Access can give you execution plans too, but you have to do some weird trickery to get them)
 
11:28 AM
yeah - the execution plans get a little confusing on giant querysets... although I haven't looked at one in years... i will check it out.
thanks!
 
Np. Nowadays they're mostly nicely visualized (especially if you're using SSMS and SQL server, but SEDE visualizes pretty good too), so they should be relatively easy to understand, unless you're doing very complex things. Access is an exception, of course, and doesn't include any tools to visualize execution plans :(
 
 
1 hour later…
@ashleedawg Upgrade from a CRT to an LCD? Wow! I believe I haven't seen a CRT in the past 5 years at least
Wait... Except medical devices. I know one hospital that still used an ultrasound with CRT
 
 
1 hour later…
2:08 PM
@Zoe congrats
Order of a WHERE clause in SQL server does matter.
You want most restrictive first for query optimization.
 
Afaik the optimizer in SQL server ignores order in nearly all cases nowadays
But you could prove me wrong. We have SEDE, where it's easy to run queries that take long. If you can come up with a query where there's a large difference between two variations in order, I'd be very surprised
 
@ErikvonAsmuth True iternally it does its own re-arranging unless you force it to go down a particular route. I will have to look up my books but I suspect the dust on them is argument enough in your favour. I would still argue it is good practice to put your most restrictive first if only for the thought involved.
 
Hmmm... I was working on a SEDE example, but that does a lot of caching: way 1 was 11921 ms, way 2 2090 ms, way 1 again was 2091 ms...
 
2:24 PM
What is way1 or way2? :-)
 
I agree with logical ordering of arguments. But I tend to count on the optimizer. E.g. I do date window first, then perhaps a nonclustered index seek, even though I know the index seek will narrow it down more and be faster. But I want to lay out constraints before I explain what I'm actually selecting
way 1: `SELECT TOP 10 *
FROM Posts
WHERE
Body Like '%banana%'
AND Tags Like '%sql%'
AND CreationDate Between '2018-1-1' And '2018-2-1'`
 
Lol
 
way 2: `SELECT TOP 10 *
FROM Posts
WHERE
Tags Like '%sql%'
AND CreationDate Between '2018-1-1' And '2018-2-1'
AND Body Like '%banana%'`
Way 2 should be way faster if processed in order since tags and creationdate are indexed, and searching body is slow
That is, if it mattered at all
 
Does SEDE show its indexes i.e. can you query them so better design your own queries? I am guessing the answer is yes from what you are saying.
@ErikvonAsmuth Well SO agrees with you : stackoverflow.com/a/11436528/6241235
 
2:31 PM
Though this comment is an oddity: Interesting side note with SQL server,apparently the order of NOT EXISTS within predicates can actually influence plan creation: bradsruminations.blogspot.com/2010/04/looking-under-hood.html – Justin Swartsel Jul 11 '12 at 16:03
 
Oh, NOT EXISTS = a join operation (LEFT ANTI SEMI JOIN), and if you create really complex queries with many joins the optimizer can time out and just process all joins in order without considering efficiency. I knew that, but didn't think of that in this context.
Hmm... But that blog apparently found yet another way to make it matter
 
 
8 hours later…
10:37 PM
@ashleedawg
0
Q: How to run access query using excel VBA?

GCCI am fairly new to Access and I have been trying for a while to run an Access query and paste the results in Excel using VBA. I have combined some code I found and I think I almost have it but cannot figure out the last step. Here is the code: Sub test() Dim ws As Worksheet Dim A As Object Dim...

 

« first day (107 days earlier)      last day (1432 days later) »