-
WSjimbeard
AskWoody LoungerNow THAT’s my idea of an interesting “feature” (bug). Especially the last part, where putting only the necessary brackets causes failure.
-
WSjimbeard
AskWoody LoungerNow THAT’s my idea of an interesting “feature” (bug). Especially the last part, where putting only the necessary brackets causes failure.
-
WSjimbeard
AskWoody LoungerHans,
Your crosstab query in the example version works perfectly, as you know. However, when I take the specimen that I posted and attempt to make declared parameters of Forms![Get Dates Dialog]!txtStartDate and the end date, I get the bracketing error I described in my earlier post. I’m using Access 2002 SP3. In fact, if I take YOUR copy of the parameterized query, edit | cut one of the parameters, close the parameters box, open it again, paste the text back in and give it a date/time type, I then get the error! (All this is done in “Design View”.)
By examining the query in SQL format before and after re-entering the parameter info, I finally found the error that my copy of Access makes. It puts brackets around the entire parameter expression, as follows: “[[forms]![Get Dates Dialog]![txtStartDate]]” Notice the double opening brackets. But then it can’t parse the resulting expression, and the version it quotes in the error message does indeed have a bracketing mismatch. (I hadn’t previously noticed the that the version that the error message quotes me does have a bracket-count error, though the expression in the parameter window does not.) Your version, which works fine, does not have that extra set of surrounding brackets in its SQL. If I edit them out of the SQL that my copy of Access creates, I can get my query to work.
I wonder if it’s worth trying to explain the bug to Microsoft.
Jim
-
WSjimbeard
AskWoody LoungerHans,
Your crosstab query in the example version works perfectly, as you know. However, when I take the specimen that I posted and attempt to make declared parameters of Forms![Get Dates Dialog]!txtStartDate and the end date, I get the bracketing error I described in my earlier post. I’m using Access 2002 SP3. In fact, if I take YOUR copy of the parameterized query, edit | cut one of the parameters, close the parameters box, open it again, paste the text back in and give it a date/time type, I then get the error! (All this is done in “Design View”.)
By examining the query in SQL format before and after re-entering the parameter info, I finally found the error that my copy of Access makes. It puts brackets around the entire parameter expression, as follows: “[[forms]![Get Dates Dialog]![txtStartDate]]” Notice the double opening brackets. But then it can’t parse the resulting expression, and the version it quotes in the error message does indeed have a bracketing mismatch. (I hadn’t previously noticed the that the version that the error message quotes me does have a bracket-count error, though the expression in the parameter window does not.) Your version, which works fine, does not have that extra set of surrounding brackets in its SQL. If I edit them out of the SQL that my copy of Access creates, I can get my query to work.
I wonder if it’s worth trying to explain the bug to Microsoft.
Jim
-
WSjimbeard
AskWoody LoungerIt’s not so easy to get a 12-MB, 2-file data base down to a 100K zip file! Anyway, I think the attached database still functions and illustrates the problem.
To demonstrate, open form “Get Dates Dialog”, enter starting and ending dates (June, 2002 or later) and choose OK to execute the code and hide the form. Then try to get the results of the query, “Limitations (all) by date and site” into a crosstab form without first copying them into a temporary table.
Jim
-
WSjimbeard
AskWoody LoungerIt’s not so easy to get a 12-MB, 2-file data base down to a 100K zip file! Anyway, I think the attached database still functions and illustrates the problem.
To demonstrate, open form “Get Dates Dialog”, enter starting and ending dates (June, 2002 or later) and choose OK to execute the code and hide the form. Then try to get the results of the query, “Limitations (all) by date and site” into a crosstab form without first copying them into a temporary table.
Jim
-
WSjimbeard
AskWoody LoungerI’ve had no luck with the workaround suggested in the knowledge base.
[Feel free to skip this paragraph:] My query is summarizing numbers of patients seen at various sites between specified dates who have certain impediments to learning. Each impediment is a boolean field in the patient’s record in the Patients table. To get all the sites to appear (not just the few who’ve had at least one patient for EVERY impediment in the time range), the queries have to be done in two steps: First, for each impediment, a query counts the number of affected persons at each site in the time range, and throws in a constant field that names the impediment being looked for. Then a union query combines all these results.
Using a PivotTable view in Access 2002, the results of the union query can be viewed as desired (the rows are the sites, the columns are the various impediments, and the values are the counts of affected patients)
But the crosstab query can’t be formulated in either Access 2002 or Access 2000. I’ve tried making the start date and end date into typed parameters in the underlying queries (where they actually ARE parameters), but then I get the error:
Invalid bracketing of name . (Error 3126)
The specified name either cannot have brackets around it or the brackets are mismatched. Check your entry to make sure the brackets are properly matched, and then try the operation again.The brackets ARE correct, though, and the ones around the terms that don’t have spaces in them are added by Access itself, i.e., in
“>=[forms]![Get Dates Dialog]![txtStartDate]”, the brackets around “forms” and “txtStartDate” are added by Access.The fact the the PivotTable view works just fine, and the Crosstab doesn’t, indicates to me that the Crosstab machinery is just defective.
Jim Beard
-
WSjimbeard
AskWoody LoungerI’ve had no luck with the workaround suggested in the knowledge base.
[Feel free to skip this paragraph:] My query is summarizing numbers of patients seen at various sites between specified dates who have certain impediments to learning. Each impediment is a boolean field in the patient’s record in the Patients table. To get all the sites to appear (not just the few who’ve had at least one patient for EVERY impediment in the time range), the queries have to be done in two steps: First, for each impediment, a query counts the number of affected persons at each site in the time range, and throws in a constant field that names the impediment being looked for. Then a union query combines all these results.
Using a PivotTable view in Access 2002, the results of the union query can be viewed as desired (the rows are the sites, the columns are the various impediments, and the values are the counts of affected patients)
But the crosstab query can’t be formulated in either Access 2002 or Access 2000. I’ve tried making the start date and end date into typed parameters in the underlying queries (where they actually ARE parameters), but then I get the error:
Invalid bracketing of name . (Error 3126)
The specified name either cannot have brackets around it or the brackets are mismatched. Check your entry to make sure the brackets are properly matched, and then try the operation again.The brackets ARE correct, though, and the ones around the terms that don’t have spaces in them are added by Access itself, i.e., in
“>=[forms]![Get Dates Dialog]![txtStartDate]”, the brackets around “forms” and “txtStartDate” are added by Access.The fact the the PivotTable view works just fine, and the Crosstab doesn’t, indicates to me that the Crosstab machinery is just defective.
Jim Beard
-
WSjimbeard
AskWoody LoungerThanks, Jefferson. I’m chagrined that I spent most of an hour searching through the vbscript and WSH documentation trying to find such a thing (shellObject.BrowseForFolder), and Andrew’s code clearly indicates that it exists.
-
WSjimbeard
AskWoody LoungerThanks, Jefferson. I’m chagrined that I spent most of an hour searching through the vbscript and WSH documentation trying to find such a thing (shellObject.BrowseForFolder), and Andrew’s code clearly indicates that it exists.
-
WSjimbeard
AskWoody LoungerAlas, I’m forever installing new software or removing old, so I can’t say what was happening around the time this showed up. I do run antivirus and firewall software, and periodically run Ad-Aware and SpyBot. Haven’t had particular problems there. I have spent many puzzled minutes gazing at the activity on Task manager, and am none the wiser for it.
-
WSjimbeard
AskWoody LoungerAlas, I’m forever installing new software or removing old, so I can’t say what was happening around the time this showed up. I do run antivirus and firewall software, and periodically run Ad-Aware and SpyBot. Haven’t had particular problems there. I have spent many puzzled minutes gazing at the activity on Task manager, and am none the wiser for it.
-
WSjimbeard
AskWoody LoungerI never was able to find the posting referred to. (Searching on the API call name was fruitless, and unfortunately I don’t know who Andrew is.)
I did find it possible to use drag-and-drop for the purpose. That is, I can use Explorer to locate the file I want to perform the script actions on, and drag and drop it onto the VBscript file’s icon. I’d still be very interested to know how some API’s might be called.
-
WSjimbeard
AskWoody LoungerI never was able to find the posting referred to. (Searching on the API call name was fruitless, and unfortunately I don’t know who Andrew is.)
I did find it possible to use drag-and-drop for the purpose. That is, I can use Explorer to locate the file I want to perform the script actions on, and drag and drop it onto the VBscript file’s icon. I’d still be very interested to know how some API’s might be called.
-
WSjimbeard
AskWoody LoungerThanks. I was imprecise about the problems. First, I couldn’t recall how to make the F1 key work right; this was fixed by your suggestion. Second, I didn’t know how to make the “Contents” and “Index” pages appear. These I found with the little “Show tabs” icon in the upper part of the Help window. So I’m much happier. The last thing was regarding context-sensitive help, but now I’m not at all sure that Word ever offered this, except in the Visual Basic editor.
![]() |
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
-
Woody (Awaiting moderation)
by
Scott
43 minutes ago -
24H2 has suppressed my favoured spider
by
Davidhs
3 hours, 1 minute ago -
GeForce RTX 5060 in certain motherboards could experience blank screens
by
Alex5723
10 hours, 57 minutes ago -
MS Office 365 Home on MAC
by
MickIver
4 hours, 46 minutes ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
1 day ago -
Flash Drive Eject Error for Still In Use
by
J9438
1 day, 2 hours ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
1 day, 19 hours ago -
Windows 11 Insider Preview build 26120.4161 (24H2) released to BETA
by
joep517
1 day, 19 hours ago -
AI model turns to blackmail when engineers try to take it offline
by
Cybertooth
23 hours, 32 minutes ago -
Migrate off MS365 to Apple Products
by
dmt_3904
1 day ago -
Login screen icon
by
CWBillow
14 hours, 43 minutes ago -
AI coming to everything
by
Susan Bradley
3 minutes ago -
Mozilla : Pocket shuts down July 8, 2025, Fakespot shuts down on July 1, 2025
by
Alex5723
2 days, 11 hours ago -
No Screen TurnOff???
by
CWBillow
2 days, 11 hours ago -
Identify a dynamic range to then be used in another formula
by
BigDaddy07
2 days, 12 hours ago -
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
3 days ago -
How well does your browser block trackers?
by
n0ads
2 days, 10 hours ago -
You can’t handle me
by
Susan Bradley
9 hours, 7 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
2 days, 2 hours ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
3 days, 11 hours ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
2 days, 14 hours ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
3 days, 11 hours ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
3 days, 11 hours ago -
Lumma malware takedown
by
EyesOnWindows
3 days ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
3 days, 20 hours ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
3 days, 20 hours ago -
Meet Gemini in Chrome
by
Alex5723
4 days ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
4 days ago -
Trump signs Take It Down Act
by
Alex5723
4 days, 8 hours ago -
Do you have a maintenance window?
by
Susan Bradley
2 days, 13 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.