-
WSkerryg
AskWoody LoungerThanks Hans That worked.
You are a champ!
And amazingly I got it to work on another similar report. I’m on a roll now.
-
WSkerryg
AskWoody LoungerUsing the SQL below I managed to get the report to run even with null values. It would be nice to put zeros in where there is no data but it isnt life threatening. I am not sure how to incorporate your last suggestion to do this thoug?
TRANSFORM Count(tbl_Applications.ProjectID) AS CountOfProjectID
SELECT tbl_Applications.StaffName, tbl_Applications.Region, Count(tbl_Applications.ProjectID) AS [Total Of ProjectID]
FROM lup_Criteria INNER JOIN tbl_Applications ON lup_Criteria.CriteriaID = tbl_Applications.CriteriaID
WHERE (((tbl_Applications.Status)=”active”) AND ((lup_Criteria.Criteria)=”Caseload”))
GROUP BY tbl_Applications.StaffName, tbl_Applications.Region
PIVOT Nz(tbl_Applications.SupervisionStandard,”Unknown”) In (“M1″,”M2″,”M3″,”DC1″,”DC2″,”C1″,”C2″,”C3″,”R”,”I”,”Unknown”); -
WSkerryg
AskWoody LoungerHi Hans
Thanks for your reply. I have tried my best to get my head around this but I am still having trouble. When I have a Supervision Standard that has no entry. As you would say a null value I need a 0 zero returned into the column.
At the moment there is no one with an M3 code so the report wont work. But it could be any of the codes at anytime.The supevision standards are “M1″;”M2″;”M3″;”DC1″;”DC2″;”C1″;”C2″;”C3″;”R”;”I”;””
Be patient with me Hans its been a while since I worked with crosstabs and I always did have trouble with them.
-
WSkerryg
AskWoody LoungerThanks for pointing this out to me. Yes it does exactly what I want.
-
WSkerryg
AskWoody LoungerThanks Hans. Once again – exactly what I was looking for.
Seeya -
WSkerryg
AskWoody LoungerThanks this is also very useful.
Regards Kerry
-
WSkerryg
AskWoody LoungerThanks again Hans – this is exactly what I was looking for.
Kerry
-
WSkerryg
AskWoody LoungerDuh! I feel like a right twit! I tried the is null stuff but not Or. Must be too late in the day for my brain.
Thanks Hans.
-
WSkerryg
AskWoody LoungerSorry to take so long to get back. Yes you were right. I have a fiddle with the paragraph in question and it worked.
Thanks Hans
-
WSkerryg
AskWoody LoungerEdited by HansV to remove white space from attached image
Hans I am sorry to bug you again. I successfully run this macro today at work. Now I have brought it home and run it on both my laptop and desktop and keep getting this error message.
I made a template from the actual document and then referenced the file name and path in the macro “Set docNew = Documents.Add(Template:=”F:split template.dot”)”
What am I doing wrong?
-
WSkerryg
AskWoody LoungerHans you are a champ! Thankyou once again. It all works perfectly now.
This is soooo handy for me to be able to do.
Kind Regards
-
WSkerryg
AskWoody LoungerI have been fiddling all afternoon and was just about to send you this sample to show you what is happening. Can you take a look at it before I attempt your other solution?
Thanks
-
WSkerryg
AskWoody LoungerHans it is wonderful! Thankyou.
I am having just one minor problem. My styles seem to be changing when it I do the split. Not sure why.
-
WSkerryg
AskWoody LoungerJust trust me Hans, I do have a need to split a large document. Can you help me with this please?
-
WSkerryg
AskWoody LoungerThat wasnt possible as there are links between chapters and our bandwidth didnt allow such big documents. Trust me I had my reasons to go to this program.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 hour, 10 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 hour, 11 minutes ago -
Copilot, under the table
by
Will Fastie
1 hour, 12 minutes ago -
The Windows experience
by
Will Fastie
1 minute ago -
A tale of two operating systems
by
Susan Bradley
1 hour, 14 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
3 hours, 17 minutes ago -
Where’s the cache today?
by
Up2you2
18 hours, 38 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
11 hours, 23 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
2 hours, 22 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
19 hours, 19 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
1 day, 11 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
1 day, 11 hours ago -
regarding april update and may update
by
heybengbeng
1 day, 13 hours ago -
MS Passkey
by
pmruzicka
15 hours, 24 minutes ago -
Can’t make Opera my default browser
by
bmeacham
1 day, 21 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 7 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
1 day, 20 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
2 days, 15 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days ago -
AI slop
by
Susan Bradley
18 hours, 39 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 2 hours ago -
Two blank icons
by
CR2
10 hours, 12 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
12 hours, 10 minutes ago -
End of 10
by
Alex5723
3 days, 13 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 days, 11 hours ago -
test post
by
gtd12345
3 days, 19 hours ago -
Privacy and the Real ID
by
Susan Bradley
3 days, 9 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 12 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
3 days, 23 hours ago -
Upgrading from Win 10
by
WSjcgc50
2 days, 11 hours 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-2025 by AskWoody Tech LLC. All Rights Reserved.