AC5FF
Registered User.
- Local time
- Yesterday, 19:27
- Joined
- Apr 6, 2004
- Messages
- 552
Here's one I have never seen before - and I can't understand why or what is happening...
I've got a shared database running great - no major issues and everything appears to be working fine. However, one of the 'tasks' that has to be done monthly is to run a batch of queries to update production slides. I have never had a problem with this; all the queries perform correctly/etc/etc/etc...
But I've started training a replacement this week and was walking him through all the production slides and how they were built - then we ran into this hiccup.
Basically, I have an Excel document that links to the database to pull all the data needed. There's 12 different tabs in this Excel document; each tab has its own query (or two) that gets the data and then creates the charts/graphs that I need. This all works fine for my replacement except for this one query. I originally thought it was a problem with the connections in Excel, but those were all set correctly. When I had him go into the database and run the query from there, he gets no data returned! However, if I am in the database the query will return the expected results.
Anyone ever see something like this happen? I checked the query's properties and it was set up correctly (I think). I didn't see a difference between this query or another query that is used and was working fine.
Not sure if it'll help, but I'm posting the SQL for the query here:
Thanks!
I've got a shared database running great - no major issues and everything appears to be working fine. However, one of the 'tasks' that has to be done monthly is to run a batch of queries to update production slides. I have never had a problem with this; all the queries perform correctly/etc/etc/etc...
But I've started training a replacement this week and was walking him through all the production slides and how they were built - then we ran into this hiccup.
Basically, I have an Excel document that links to the database to pull all the data needed. There's 12 different tabs in this Excel document; each tab has its own query (or two) that gets the data and then creates the charts/graphs that I need. This all works fine for my replacement except for this one query. I originally thought it was a problem with the connections in Excel, but those were all set correctly. When I had him go into the database and run the query from there, he gets no data returned! However, if I am in the database the query will return the expected results.
Anyone ever see something like this happen? I checked the query's properties and it was set up correctly (I think). I didn't see a difference between this query or another query that is used and was working fine.
Not sure if it'll help, but I'm posting the SQL for the query here:
Code:
SELECT DISTINCTROW Count([IREP DWP].DOC) AS CountOfDOC, lru.Abbr, Avg([IREP DWP].Days) AS AvgOfDays, Area.Name
FROM (Area INNER JOIN (lru INNER JOIN [IREP DWP] ON lru.ID=[IREP DWP].[LRU ID]) ON Area.ID=lru.Team) INNER JOIN [IREP History] ON [IREP DWP].Date=[IREP History].Date
WHERE ((([IREP History].Date)=CDate("1-" & Format(DateAdd("m",-1,Date()),"mm") & "-" & Format(DateAdd("m",-1,Date()),"yy"))))
GROUP BY lru.Abbr, Area.Name
ORDER BY Count([IREP DWP].DOC) DESC;
Thanks!