-
WSLeesha
AskWoody LoungerThanks for the link! What a great guide. I had already done the google xml file so that is all set.
Leesha
-
WSLeesha
AskWoody LoungerHi!
I’m not doing it from the wizard, however I do have all of the rows, columns and values identified. Nothing I try works. I use crosstabs all the time so this one really has me stumped. It runs fine until I put in the filter of [forms]![frmReports]![txtyear]. If I don’t try to filter the year its OK. If I use this same filter on a select query it runs fine and filters as it should. It’s only when I try to do it in a crosstab query.
Leesha
-
WSLeesha
AskWoody LoungerHi Andrew,
The form was open so that is why I wasn’t sure about adding in the tabbed page. I went back and hunted and found that at somepoint (God only knows why or when) I set the bound column to 2. Once I reset it to 1 the report ran.Thanks!
Leesha -
WSLeesha
AskWoody LoungerLOL! When it comes to me with sql Server don’t assume anything. It’s only by luck when I get things to work. I used Wendell’s sql and it works as long as CustomerID and Paid are not in the query. Once I put either or both of those I get an error related to “group by” which I never would’ve gotten past had it not been for your hint above. Once I changed that I was set.
Thanks to both of you!
Leesha -
WSLeesha
AskWoody LoungerHi Pat!
I’m running it in sql, not access. I need it for a asp.net web page.
Thanks,
Leesha -
WSLeesha
AskWoody LoungerThanks! That is what I needed!! Now I can see why I was getting zeros.
Leesha
-
WSLeesha
AskWoody LoungerHi Hans!
The first one worked perfectly. Thanks to both of you for the explanations. My gosh is time complicated!!!
Thanks and Merry Christmas,
Leesha -
WSLeesha
AskWoody LoungerHi Hans,
I got an OBDC error stating something about using the convert function to run this query. This database has a few links to sql tables and don’t you know this is one of them. I can always create a temporary table using and Access table if there isn’t an easy way to change this code, which of course I would need your help on.
Also……………..my never ending need to understand how something works……………………..what is the forumula you gave me actually doing? I’ve not used “Int” before.
Thanks!
Leesha -
WSLeesha
AskWoody LoungerOMG!!! That was simply too easy! I love it!
BTW, I didn’t get an email for either of these two responses. They aren’t in my spam either.
Thanks!
Leesha -
WSLeesha
AskWoody LoungerIf the sum of the times is greater than 24 hours, then you won’t be able to display it correctly as time. Times can’t be more than 24 hours because dates and times are stored as decimals with the whole number part representing the Days and the decimal the Hours.
I usually use something like ([endtime]-[startime])* 24 which converts it from time into a number of hours as a number. They can be added up easily, and give the right answer if multiplied by, say, a rate of pay.
That worked perfectly!!!
Thanks!
Leesha -
WSLeesha
AskWoody LoungerPerfect! thanks!
-
WSLeesha
AskWoody LoungerThe only problem with this recent code is that the row that has cells that are blank(not null) is filtred out leaving only the rows with names. Normally this would be fine but what I run into is that when the page loads, either the first or last student name is shown, depending on the sort order. I need this to show the row with no data WITHOUT the comma. This way if the user saves the page, without entering / choosing a name, the cell remains blank in that row. Otherwise, they end up saving the wrong name if they don’t make a change. It’s a pain I know. I really do hate asp.net and web basd pages!!!
Thanks,
Leesha -
WSLeesha
AskWoody LoungerThanks to both of you!
The database is actually pretty clean in that at the present time there are no spaces in the first and last names that I can tell anyway. There is one row that has no data in any of the fields. This is done on purpose so that when the asp.net page loads it doesn’t default to a record name, but rather to a blank field. The user is required to choose a name from the dropdownlist, they can’t save the page if no name is chosen. The problem I’m running into is that when there is a comma in the dropdownlist (which is the case when there LastName, FirstName MI are blank) the web page “thinks” that there is a name in the dropdownlist and allows the page to be save with just the comma and doesn’t force the user to choose a name. I need to somehow have the row appear without the comma, thus why I thought having the query return is as an empty cell would work. Does that make sense?
Leesha
-
WSLeesha
AskWoody LoungerLeesha,
Your code seems to be good as you can see in the attachment. Can you post your full SELECT statement ?
Added later :
Could it be that there are spaces in the fields LastName, FirstName or Mi ?Hi Francois!
Yes, there are no values in those fields. In that instance, I need the comma not to be inserted, or I should say, the fields not to be joined together. It would ONLY be when nothing is in ALL THREE fields. Is that possible?Thanks,
Leesha -
WSLeesha
AskWoody LoungerTo be honest, once you get the hang of them, they are just as easy as Access IIF’s.
In fact if you have multiple criteria then they can be a lot easier than the Access nested IIF functions.Well I told you I’d be back. I’ll bet you didn’t figure it would be so quickly! The code I’m using works great with the exception of when LastName, FirstName and MI are all null. Then the query returns a comma only. I want this to return a null field with no comma at all. How would I write that? The code presently is:
SELECT TOP (100) PERCENT IDStudentName,
ISNULL(LastName + ‘, ‘, ”) + ISNULL(FirstName + ‘ ‘, ”) + ISNULL(Mi, ”) AS [Student Name], FROM dbo.tblStudentNames
ORDER BY [Student Name]Thanks!
Leesha
![]() |
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
-
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
41 minutes ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
1 hour, 47 minutes ago -
YouTube Ad Blocker Blocker
by
bbearren
1 hour, 58 minutes ago -
Obscure historical facts about Windows
by
Cybertooth
5 hours, 49 minutes ago -
Microsoft Backup
by
Linda2019
19 minutes ago -
What is the best notepad++ version for W7?
by
Picky
8 hours, 42 minutes ago -
What are right steps to move MS 365 Office+OneDrive files from PC to iMac?
by
glnz
15 hours, 42 minutes ago -
How to move existing MS 365 Office with OneDrive files from PC to new iMac
by
glnz
15 hours, 44 minutes ago -
How to move MS 365 files (some on OneDrive) from PC to iMac
by
glnz
1 day, 10 hours ago -
Microsoft adding Quick Machine Recovery to Windows 11
by
Alex5723
1 day, 10 hours ago -
Microsoft vs Passwords
by
Alex5723
19 hours ago -
Windows 11 Insider Preview build 26200.5516 released to DEV
by
joep517
1 day, 14 hours ago -
Windows 11 Insider Preview build 26120.3653 (24H2) released to BETA
by
joep517
1 day, 14 hours ago -
Two March KB5053606 updates?
by
Adam
1 day, 8 hours ago -
MS Edge Not Updating to v134.0.3124.95 (rel. 27-Mar-2025)
by
lmacri
1 day, 8 hours ago -
Intel® Graphics/Sound Driver updates for 7th-10th Gen Intel® Core™ Processor
by
Alex5723
1 day, 11 hours ago -
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
1 day, 9 hours ago -
Transferring ALL info/settings from current Firefox to new computer Firefox
by
Tex265
1 day, 9 hours ago -
DOGE Wants to Replace SSA 60 Million Line COBOL Codebase in Months
by
EyesOnWindows
4 hours, 33 minutes ago -
KB5051989 Usb printer Post Ipp
by
licencesti
2 days, 2 hours ago -
Removing bypassnro
by
Susan Bradley
1 hour, 48 minutes ago -
Up to 30 seconds to show “Recent Topics”
by
PL1
1 day, 7 hours ago -
Sound changes after upgrade from W11 23H2
by
WStaylorpsepa
8 hours, 11 minutes ago -
Windows bug blocks BIOS updates for Lenovo ThinkPad laptops
by
Alex5723
2 days, 11 hours ago -
O&O Software – ‘World Backup Day’ Sale
by
unbob
2 days, 8 hours ago -
Still version 23H2?
by
WSbxcfilm
2 days, 12 hours ago -
Ubuntu 25.04 (Plucky Puffin) Beta released
by
Alex5723
2 days, 18 hours ago -
How to install App Store apps on an external SSD
by
Alex5723
2 days, 19 hours ago -
Where is Windows going?
by
Susan Bradley
10 hours, 51 minutes ago -
Installing Feature Update Windows 11 24H2
by
geekdom
3 days, 13 hours ago
Recent blog posts
- Removing bypassnro
- Where is Windows going?
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
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.