-
WSdascooper
AskWoody LoungerI don’t think dateserial is a MS SQL 2008 function. If so, this would have been a great solution. It looks like there have been some new functions added in SQL 2012, but we’re not there yet.
-
WSdascooper
AskWoody LoungerXircal, Thanks for your help. However, I followed the steps above, but all the settings were as they should be – no changes to save. On the Indexing Service, it said that indexing was started (and the start button was grayed out). However, when I have the Windows Search application open, I’m still getting the yellow bar that Windows Search isn’t running….
-
WSdascooper
AskWoody LoungerThe data table didn’t translate well when I posted the response – below is the data referred to above:
Rev Due Date Function_Names Running Total
2011 06 Power Production 1
2011 07 Power Production 2
2011 08 Power Production 3
2011 09 Power Production 12
2011 10 Power Production 14
2011 10 Power Production 15
2012 06 Power Production 16
2013 06 Power Production 17
2014 06 Power Production 18 -
WSdascooper
AskWoody LoungerI am getting close to the solution – the next issue (and I hope last issue) is grouping the data by months. Below is the code and output where I stand now. I need to be able to group the data by month so the output shows 1 record per month.
q Counts Running TotalRev Due DateFunction_NamesRunning Total
Customer Service
Power Production
Transmission & Distribution
2011 06Power Production12011 07Power Production22011 08Power Production32011 09Power Production122011 10Power Production142011 10Power Production152012 06Power Production162013 06Power Production172014 06Power Production18As you can see, there are two records for 10/2011. I need to group this into one record
CODE for above results:
SELECT [q counts].[Rev Due Date], [q counts].Function_Names, Sum((select Sum([Number of Milestones]) from [q counts] nn where [nn].[rev due date] <= [q counts].[rev due date] and [nn].[Function_Names] = [q counts].[Function_Names])) AS [Running Total]
FROM [q counts]
GROUP BY [q counts].[Rev Due Date], [q counts].Function_Names;As a bonus question, I would also like to ultimately create a table that has the data in a table with all months for charting purposes. I would appreciate any suggestions to accomplish that.
Thanks, David
-
WSdascooper
AskWoody LoungerI think the other problem I am having is that I am trying to do two counts (monthly and running total) in the same query – I seem to recall that a query can only have one count field at a time – is that right? If so, I may have to break this out into multiple queries. Is that a correct assumption – anyone?
-
WSdascooper
AskWoody LoungerAmazing what a quick search will do – I actually (for once!) found and implemented a solution. I still appreciate the help everyone has provided in the past (and probably in the future!)
-
WSdascooper
AskWoody LoungerJohn, sorry for the late reply – I got off on some other projects for a bit. That is a great idea – I should be able to do that without too much effort (I’m still a novice at Access, but a dangerous one at that!). Thanks for the suggestion
-
WSdascooper
AskWoody LoungerThanks for your quick response. I haven’t worked with macros much or with VBA at all, but there are a couple people I work with that looked at the responses and are helping me work with my live data.
I appreciate your help!
-
WSdascooper
AskWoody LoungerSeptember 2, 2009 at 11:47 am in reply to: Cannot conntect to printer over wireless network #1176022I’ve tried that. The problem is that the XP machine does not have the Vista print drivers for the HP4L (and HP doesn’t provide the drivers for download).
-
WSdascooper
AskWoody LoungerHans, Thank you. I have not used modules before (I am a dangerous novice). A couple of questions about this: It is saving the data to a table. Is there a way to do this and have the results in a query? The reason being that the base table is updated monthly (completely replaced from an external source). Also, can the input into the module be a query? The base data has dates YYYYMMDD, but I create a year field based upon different criteria (it may or may not be the same year). I have a query that provides the base year, but not a table.
While I don’t understand everything in the module, I can see enough as to how it works and how I can use it. I appreciate your help!
One last question, I am using Access 2000 – Will this work with older versions of access?
David
-
WSdascooper
AskWoody LoungerThanks, I joined a while back and have searched the forum to solve many problems. However, this is one I haven’t been able to resolve yet.
Not being a database “Expert”, I’ll use an example..
The base table lists ID, date aquired, description and cost:
B0342, 2008, Honda, 23000
I need to create a query that adds an annual record:
ID, Date Aquired, Year, Cost, Annual Expenses
B0342, 2008, 2008, Honda, 23000, 1400
B0342, 2008, 2009, Honda, 23000, 1450
B0342, 2008, 2010, Honda, 23000, 1500
B0342, 2008, 2011, Honda, 23000, 1300
B0342, 2008, 2012, Honda, 23000, 1350The Annual Expenses for past years will be pulled from another table that has ID, Year, Annual Expenses. The costs for future years will be calculated based on a % of the cost (I can do that part with iif statements).
Does that help explain the question?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Strange problem after upgrade from Win10Pro 22H2 to Win11Pro 22H2
by
JohnH
7 hours, 28 minutes ago -
Return Full Context Menus to File Explorer
by
RetiredGeek
11 hours, 59 minutes ago -
Unusual Activity on Startup
by
Kenneth Stephens
15 hours, 50 minutes ago -
Windows Backup – incremental possible?
by
colin_thames
14 hours, 2 minutes ago -
New HD addition??
by
weendoggy
4 hours, 50 minutes ago -
Defcon 4 and Windows 11
by
cmar6
20 hours, 50 minutes ago -
Add-ins keep disappearing
by
hession
18 hours, 14 minutes ago -
MS-DEFCON 4: Is Windows 11 really a disaster?
by
Susan Bradley
4 hours, 31 minutes ago -
The Takahē is not extinct afterall
by
lylejk
1 day, 5 hours ago -
How to unbloc W10pro from moving to W11
by
hession
1 day, 19 hours ago -
Windows 11, Surface, and Windows Copilot
by
Will Fastie
7 hours, 6 minutes ago -
Why File Explorer keeps me on Windows
by
Josh Hendrickson
14 hours, 53 minutes ago -
Uninstalr — “World’s best cup of coffee”
by
Deanna McElveen
11 hours, 51 minutes ago -
Locked out of your refurbished computer?
by
Susan Bradley
11 hours, 35 minutes ago -
Thunderbird 115: Changing font size in the Message Panel
by
WCHS
1 day, 18 hours ago -
Lenovo ThinkPad not updating to Windows 11 22H2
by
Gordski
9 hours, 51 minutes ago -
Android Security
by
Magic66
1 day, 20 hours ago -
What happened to the manual?
by
Susan Bradley
1 day, 11 hours ago -
OK to Restore Files From a Possibly Hacked Computer?
by
kc27
4 hours, 41 minutes ago -
Startup loop after adding new user and installing File Explore Patch
by
PFC
3 days, 11 hours ago -
RoboCops comes to NYPD. You have the right to remain cyborg
by
Alex5723
3 days, 16 hours ago -
iOS 17 : New Safari Privat Search Engines
by
Alex5723
3 days, 17 hours ago -
Photos App running in background
by
Tom
2 days, 14 hours ago -
IPV6 Issue Win10 22H2 August Update
by
Win7and10
4 hours, 39 minutes ago -
Windows 11 Insider Preview build 23550 released to DEV
by
joep517
4 days, 16 hours ago -
Windows 11 Build 22621.2361 (22H2) released to Release Preview
by
joep517
4 days, 16 hours ago -
Lately I’ve been getting qr code spam attacks
by
Susan Bradley
4 days, 19 hours ago -
ghacks Wants Edge – FF Browser Update to View – hack/redirect
by
CraigS26
3 days, 17 hours ago -
iOS 17 : If your new iPhone gets stuck on the Apple logo when you transfer…
by
Alex5723
5 days, 3 hours ago -
Apple zero days out – September 2023
by
Susan Bradley
15 hours, 19 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2023 by AskWoody Tech LLC. All Rights Reserved.