I'm trying to get a query in access to give me a parsed string if the
field contents are not null and the value from another field if the
field contents are null. I have the following in the expression
builder:
ADID: iff([User Logon Name]<>"",
(Left$([User Logon Name],InStr(1,[User Logon Name],"@")-1)),
([Pre-Windows 2000 Logon Name]))
I keep getting the error "undefined function 'iff' in expression"
It's been a looooooong time since i've dealt with Access...please take
pity on me!!
Thanks,
Shelley 3 17036
ADID: iff([User Logon Name]<>"",
(Left$([User Logon Name],InStr(1,[User Logon Name],"@")-1)),
([Pre-Windows 2000 Logon Name]))
It's IIF, not IFF... try that and you should be good to go.
On 3 Aug 2006 12:51:00 -0700, sbowman wrote:
I'm trying to get a query in access to give me a parsed string if the
field contents are not null and the value from another field if the
field contents are null. I have the following in the expression
builder:
ADID: iff([User Logon Name]<>"",
(Left$([User Logon Name],InStr(1,[User Logon Name],"@")-1)),
([Pre-Windows 2000 Logon Name]))
I keep getting the error "undefined function 'iff' in expression"
It's been a looooooong time since i've dealt with Access...please take
pity on me!!
Thanks,
Shelley
The function is IIF (not IFF).
Also, there is a difference between Null and "".
ADID:IIf(Not IsNull([User Logon Name]),Left([User Logon
Name],InStr(1,[User Logon Name],"@")-1),
[Pre-Windows 2000 Logon Name])
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
fredg <fg******@examp le.invalidwrote in
news:13******** *************** *******@40tude. net:
The function is IIF (not IFF).
The reason for that is that it stands for Immediate If.
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bob |
last post by:
Currently I am using this statement to translate 3 fields in my db
thru Visual Basic. I import the data from one table to another then
call the IFF statements and the NewDate to translate the fields. Can
this be done in an Access db? I am trying to learn how to do these
things in Access vs Visual
Dim strIIF As String
Dim sstrIIF As String
Dim strNewDate As Date
|
by: Peter Phelps |
last post by:
My problem is as follows:
I need automatically iterate through a single field in a table and use
the values in the field to create an in-statement. Currently, the
character limitation in the "Zoom" feature of the MS Access query
builder limits the number of characters I can enter into my
In-Statement. As a result, I need to iterate through a particular
field (Customer ID Numbers) and use each record as a criteria in a
query. I want to...
|
by: mark |
last post by:
Access 2000:
I creating a report that has a record source built by the user who selects the
WHERE values. An example is:
SELECT * FROM CHARGELOG WHERE STDATE Between #10/27/2003# And #11/2/2003# And
VehicleID='00000000' And BattID='LKO500HF'.
I need to use the records returned to populate text boxes, but the data requires
further manipulation. I attempting to use expressions in the control source
|
by: JMCN |
last post by:
hi-
this function IDSpecialCases works great in access 97 in the query
builder but why doesn't it work in access 2003? would does anyone have
any wild guesses? is it a problem with the dao reference?
error message: undefined function 'IDSpecialCases' in expression.
(Undefined function <name> in expression. (Error 3085)
You entered an SQL expression that includes a Function procedure name
that cannot be recognized. Make sure the...
|
by: k7i5t3n |
last post by:
I have two tables I'm using in a query. I have pulled several fields
from 'tblEmployeeList' and need to pull a Yes/No field
'FileStampNumber' from the table 'tblFileStamps'. However, I need to
create a statement saying that if field 'CurrentFile-Stamp?' is true,
then display 'FileStampNumber', else "N/A". I have written the
statement as follow:
IIf(!=True,!,"N/A")
The field name in the query is 'FileStampNumber'. When I run the query
| |
by: Geoffrey KRETZ |
last post by:
Hello,
I'm wondering if the following behaviour is the correct one for
PostGreSQL (7.4 on UNIX).
I've a table temp_tab with 5 fields (f1,f2,f3,...),and I'm a launching
the following request :
INSERT INTO temp_tab VALUES (1,2,3)
|
by: Anja |
last post by:
Hi everyone,
I am trying to use the expression builder to create input to a control
in an Access report.
I have a table called Records and I want to select the minimum date for
a record where the student = studentID..
The sql is pretty simple: "Select MIN(RecDate) from records_T where
studentID = 1".
|
by: Stan |
last post by:
I am working with Access 2003 on a computer running XP. I am new at
using Access. I have a Db with a date field stored as mm/dd/yyyy. I
need a Query that will prompt for the month, ie. 6 for June, and will
return all records in that month.
|
by: Thorben Grosser |
last post by:
Hello Newsgroup,
I am doing some archive database and therefore got one table indexing
every folder and one table storing which rack belongs to which
department, eg:
table folders :
+-----------+------+-------+
| folder_id | rack | date |
|
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: 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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |