After developing an MDB in Access 2003 on WS03, then making it into an MDE
and deploying it on a WinXP box with Access 2003 installed, I get this
error:
Function is not available in expressions in query expression
[below is full query that appears in part in the error message]
SELECT IIf(IsNull([Address1]),"",[Address1] & Chr(13) & Char(10)) &
IIf(IsNull([Address]),"",[Address] & Char(13) & Char(10)) &
IIf(IsNull([Address]),"",[Address] & Char(13) & Char(10)) &
IIf(IsNull([City]),"",] & IIf(IsNull([State]),"",", ") &
] & " " & [Zip]) & Char(13) & Char(10) &
IIf(IsNull([Country]),"",]) AS txtAddress, Add_ID
FROM bladders
WHERE Entity_ID=Wryer ("form","Entity _ID")
ORDER BY Primary;
I searched the MS Knowledgebase, but found nothing. From what I've
discovered from other resources on the web, this may have something to do
with either the version of the Expression Service DLL, or an MDAC service
pack. I tried installing the latest JET service pack, but that did not help.
I also tried copying the expsrv.dll from the development box to the
deployment box, but that did not help. I'm wondering if this has anything to
do with other (seemingly unrelated) references. Here's a list of references
on the development box:
?ReferenceInfo
Reference: VBA
Location: C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6 \VBE6.DLL
Reference: Access
Location: C:\Program Files\Microsoft Office\OFFICE11 \MSACC.OLB
Reference: stdole
Location: C:\WINDOWS\syst em32\stdole2.ta b
Reference: DAO
Location: C:\Program Files\Common Files\Microsoft Shared\DAO\DAO3 60.DLL
Reference: ADODB
Location: C:\Program Files\Common Files\System\ad o\msado25.tlb
Reference: Excel
Location: C:\Program Files\Microsoft Office\OFFICE11 \EXCEL.EXE
Reference: Office
Location: C:\Program Files\Common Files\Microsoft Shared\OFFICE11 \MSO.DLL
Reference: Outlook
Location: C:\Program Files\Microsoft Office\OFFICE11 \msoutl.olb
Reference: Word
Location: C:\Program Files\Microsoft Office\OFFICE11 \MSWORD.OLB
In an MDE, my understanding is that all of these are supposed to stick,
regardless of the client. If something is missing, the reference will appear
as MISSING: "whatever".
The reason I format the address in a query rather than in VBA is speed. As a
user scrolls through records in the database, each record's address appears
in a subform. Making this query the RecordSource of the subform is much
faster than using DLookup for the elements of the address. I'd hate to have
to rework the query, and would much rather figure out what's missing on the
target box so if I hit other deployment snags I'll know where to look. 5 9539
> I'm wondering if this has anything to do with other (seemingly unrelated) references.
That was in fact the problem. I found a broken reference - Outlook - on the
client box. Outlook was not installed with the Office installation. Hard
to see how this is related to the expression service. Nevertheless, once
the broken reference was fixed, the error went away.
deko wrote: After developing an MDB in Access 2003 on WS03, then making it into an MDE and deploying it on a WinXP box with Access 2003 installed, I get this error:
Function is not available in expressions in query expression [below is full query that appears in part in the error message] SELECT IIf(IsNull([Address1]),"",[Address1] & Chr(13) & Char(10)) & IIf(IsNull([Address]),"",[Address] & Char(13) & Char(10)) & IIf(IsNull([Address]),"",[Address] & Char(13) & Char(10)) & IIf(IsNull([City]),"",] & IIf(IsNull([State]),"",", ") &
What is that ] doing ] & " " & [Zip]) & Char(13) & Char(10) &
What is that ] doing IIf(IsNull([Country]),"",]) AS txtAddress, Add_ID
What is that ] doing? FROM bladders WHERE Entity_ID=Wryer ("form","Entity _ID") ORDER BY Primary;
Is your query statement a mistake in typing? Is the ] a new syntax in
A2003?
It's hard to say what function is not working. What happens if you
remove the Where clause? Is Wryer() the problem...or it it the orphan
]'s that are causing the problem?
> It's hard to say what function is not working. What happens if you remove the Where clause? Is Wryer() the problem...or it it the orphan ]'s that are causing the problem?
Thanks for the reply
It turned out to be a broken reference to Outlook - the typos were a result
of spell check....
the QryPrm("frm0"," Entity_ID") function works okay when it's spelled
right...
The problem with broken references is that they cause errors apparently
related to other libraries, this only happens though when the references
collection has to be searched because a non-library specific call has ben
made.
It's important to check and fix broken references as early as possible in
code and before you do that disambiguate calls.
--
Terry Kreft
MVP Microsoft Access
"deko" <de**@hotmail.c om> wrote in message
news:Sv******** *********@newss vr27.news.prodi gy.com... I'm wondering if this has anything to do with other (seemingly unrelated) references. That was in fact the problem. I found a broken reference - Outlook - on
the client box. Outlook was not installed with the Office installation. Hard to see how this is related to the expression service. Nevertheless, once the broken reference was fixed, the error went away.
deko wrote: It's hard to say what function is not working. What happens if you remove the Where clause? Is Wryer() the problem...or it it the orphan ]'s that are causing the problem?
Thanks for the reply
It turned out to be a broken reference to Outlook - the typos were a result of spell check....
the QryPrm("frm0"," Entity_ID") function works okay when it's spelled right...
I still wonder about those extra ] brackets. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sergey |
last post by:
Hi,
Randomly I get an error "Function returned |" while trying
to upload a file in ASP application, use FileUp server-
side component from SoftWare Artisans ... can't find any
references to that error, any pointers will be highly
appreciated.
-Sergey
|
by: deko |
last post by:
After developing an MDB in Access 2003 on WS03, then making it into an MDE
and deploying it on a WinXP box with Access 2003 installed, I get this
error:
Function is not available in expressions in query expression
SELECT IIf(IsNull(),"", & Chr(13) & Char(10)) &
IIf(IsNull(),"", & Char(13) & Char(10)) &
IIf(IsNull(),"", & Char(13) & Char(10)) &
IIf(IsNull(),"",] & IIf(IsNull(),"",", ") &
|
by: deko |
last post by:
SELECT Nz(Min(),#1/1/1000#) AS NextAppt, Appt_ID
FROM tblAppointments
WHERE Entity_ID=!! AND ApptDate>=Date()
If I do not include Appt_ID, it works fine. But I need the ID so I can join
other queries to this one. My guess is this is an elementary error...
Thanks in advance.
|
by: Mike Bridge |
last post by:
I am using MS Access 2003, and I typed in a query in SQL view which was working fine. Now when I open it, it gives me
the error "Join expression not supported". Apparently, Access "fixed" it for me.
Unfortunately, I can't correct it because when I click "OK", the window disappears. I don't see any way to open the
query directly in SQL view, and both the Design and Data views exit as soon as I close the error dialog.
Is there any way...
|
by: PB |
last post by:
Hi !
I have the following code, which I am using in an Embedded systems,
c-compiler.. However I see the same problem with GCC too..
I need the last 10 bits of an address pointer, which is completly know
at link time, but will be symbols at the compile time. I used the
following code for this initalization..
uint32 data_ptr_mask = ((uint32) data) & 0x3ff;
| |
by: sfrvn |
last post by:
I am embarrassed to say I cannot make this work. Recently upgraded to
Access 2003, but do not know if that part of problem (AKA 'syntax
change'). Would someone be kind enough to lead me by the hand?
Table name: LUtblProvider
Table field names: provPKID, name, company, type, phone
Table name: tblRef
Table field names: refPKID, prov, event, src
|
by: Lighter |
last post by:
How to read "The lvalue-to-rvalue, array-to-pointer, and function-to-
pointer standard conversionsare not applied to the left expressions"?
In 5.18 Comma operator of the C++ standard, there is a rule:
"The lvalue-to-rvalue, array-to-pointer, and function-to-pointer
standard conversionsare not applied to the left expressions"
I could not understand what the rule means. I also searched the web
and the groups and got nothing.
|
by: blackdogharry |
last post by:
Hi,
I am a novice VBA user.
My access version is 2007 on Windows XP PC.
I need to create a query that will take pre-existing text values of the B_status field (such as "Received_Emailed", "Processed" etc.) and return the numeric value depending on the value of the B_status value.
So I would get 2 in the new field if the value of B_status is "Received_Emailed" and so on.
I opened Visual Basic Editor and created a function under...
|
by: rmmahara |
last post by:
Hi Folks,
I've been reading these forums for a while and now I'm in desperate need of help, so I thought I'd post!
Background:
I'm creating a Service Dashboard to track my team's adherence to Service Levels. As part of this, I've set up a web page which pulls data from a query in Access 2003. The page shows which tickets we're working on, how long they've been open, the service level for each ticket etc.
Since we're a 9-5, Monday to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |