Anyone ever seen a problem where you can’t use functions in queries?
For example, I can’t use UCase, Format, Left, etc…
The inability to use them occured only after the upgrade from Win95 to Win2K.
![]() |
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 |
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Can’t use functions in queries (A97 Win2K)
I understand. This is not my PC, and the individual it is for is not the most technically savvy…
I use a query to output some data to Excel via DoCmd.OutputTo acTable, “qryMyQuery”, “MicrosoftExcel(*.xls)”, “c:Test.xls”, False, “”
The query uses the CInt, Left, and Len functions. Here is the exact message:
Function isn’t available in expressions in query expression ‘Cint(Left([Code],Len([Code])-1))’.
This query worked before the user got upgraded to Win2K. The also got Office XP with the following exceptions:
Kept Access 97
Kept Excel 97
Any pointers are greatly appreciated!
Absolutely. That’s the first thing I checked.
In addition, I changed her installation of Access to include all options, in case something was missed in the initial install. (This has worked for me with other issues in the past)
This one REALLY has me stumped. It’s tough to tell her “It works for me just fine…” when it won’t for her.
It’s not just her PC, either. It’s everyone in her group that is using it. They all have similar PC configurations.
Could there be a problem with the Corporate image of Win2K that is causing it? How about Excel 97 being in the mix with some Office XP?
Sign me Extremely Frustrated,
I have had this problem several times It seems to happen for no apparent reason. It took a long time but we finally found the solution.
In my case it was a result of a missing activex addin – “mscal.ocx “activex
Here is how we fixed it.
install “mscal.ocx” Activex add in
close all forms of the database
open modules
select new
tools/references
select an unselected reference, noting the one you pick so you can reselect it later. Close and reopen
unselect the reference from above
These are order sensitive. Do not do it out of sequence or the problem will remain.
I know these steps sound crazy but we got this off of the microsoft website, and it worked!
Good Luck
I have found this problem on new machines and on existing machines. We just had it happen on several existing machines that use the same databases, and we did not do anything to cause it.(At least that anyone will admit to!) It just happened one Monday. Now I know just to go in and refresh the modules.
Also, check and see if the now() works. I could always get the now() to work but not the date() when I had this problem. Just curious.
(Edited by charlotte on 20-Nov-02 20:06. to activate link)
http://support.microsoft.com/default.aspx?…kb;en-us;194374%5B/url%5D
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.
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.
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.
Notifications