I have a rether simple, straight-forward Access database and need to include a calculated field in the report. My Access skills are elementary, ergo the need for assistance.
I have a "Date_Recei ved" field [date format] and an "Inventorie d" field [T/F]. I need assistance in building an expression in the calculated field something like this: -
IF INVENTORIED<>T THEN
-
DATE() - DATE RECEIVED
-
I can not figure out how to accomplish this. Help would be most appreciated!
h
1 1237
I have a rether simple, straight-forward Access database and need to include a calculated field in the report. My Access skills are elementary, ergo the need for assistance.
I have a "Date_Recei ved" field [date format] and an "Inventorie d" field [T/F]. I need assistance in building an expression in the calculated field something like this:
IF INVENTORIED<>T THEN
DATE() - DATE RECEIVED
I can not figure out how to accomplish this. Help would be most appreciated!
h
The syntax for an if statement in Access goes like this:
iif([Condition], [Value if True], [Value if False])
So in your case, it would go something like:
iif([Inventoried]="T", Date() - [Date_Received], "")
Note that if you want something returned if [Inventoried]="F" then you will need to replace the empty string ("") with that value. Also note the two i's in the word IIF.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Tom |
last post by:
I have struggled with the issue of whether or not to use Regular
Expressions for a long time now, and after implementing many text
manipulating solutions both ways, I've found that writing specialized
code instead of an RE is almost always the better solution. Here is
why....
RE's are complex. Sure it is one line of code, but it is on hell of a
line. Some of my RE remind me of the obfuscated code contest winners,
where one line of...
|
by: Fran Zablocki |
last post by:
I am trying to write an expression that converts one set of values to
another. There are two fields, STAGE and ADMIT_TYPE, which are used as
input criteria, and the final converted values are placed in the
APPSTATUS field. The rules for the conversion are as follows:
If STAGE = 600 then APPSTATUS = 03
If STAGE > 300 then APPSTATUS = 01
If STAGE > 300 and ADMIT_TYPE = AF or AFD or AP or APD, then APPSTATUS
|
by: Grant Hammond |
last post by:
I assume I'm not alone in my frustration that the expression builder
that comes (in part) with Access XP that dosnt wrap text when you open
it on an exisitng expression in a query or form.
I's bad enough that Microsoft dropped the expression builder from the
VB window (which I have restored using Michael Kaplan addin), but I
cant understand how they could not have fixed this obviously and
annoying BUG!@
|
by: Laertes |
last post by:
Hi,
I want to use the expression builder in a query to define a field. I
know how to do it for simple fields, like the one below :
orderdate: IIf((IsNull() And =False)
Or (<>"N/A" And =False),,)
When though the expression is too complex, the builder is not very
convenient to use. I tried to use a function instead... The error I
|
by: Mike Turco |
last post by:
I like using the expression builder for a lot of different things but it
isn't always available when I want to use it, for example in the code
window, or in all of the control properties. I am usually stuck having to go
into the database window, creating a new query, etc., and then
right-clicking in a field and selecting build.
Is there a shortcut key, a way to add a button to an Access toolbar, or
something like that so I can use to...
| |
by: Don |
last post by:
I'm trying to build a simple report. It will show debtors, budgeted amounts
and how much was actually paid to those debtors. I've tried using the
expression builder, though I've never used it before I somehow believe I
know how, apparently not! I chose the location of where the data is stored
and the expression builder put it into the expression builder window. When
I run the report I get this #name?. I guess that means it doesn't...
|
by: Brian Kitt |
last post by:
I have a process where I do some minimal reformating on a TAB delimited
document to prepare for DTS load. This process has been running fine, but I
recently made a change. I have a Full Text index on one column, and
punctuation in the column was causing some problems down the line. This
column is used only for full text indexing, and otherwise ignored. I decided
to use the following regular expression to remove all punctuation (actually...
|
by: AlexanderTodorovic |
last post by:
Hello Everyone,
I'm developing a client application in which the users need an
expression
builder as provided in MS Access 2003. I would like to use the
expression
builder in a C# application.
Is is possible to call the expression builder e.g. via automation?
If yes, how can i execute the rules and get the result?
|
by: rrosynek |
last post by:
I have a 2003 Access Database with several tables related in a one to many relationship with a parent I am looking to build a report which evaluates if different users of the table have all entered data properly.
As an example - the parent table creates the customer account number, customer last name and customer ssn. A related table creates all other customer information including address, phone etc., another related table contains...
|
by: emajka21 |
last post by:
Access 2000, I am trying to add a "Summed" total to a report (in a grouped footer section). But I only want to sum the top 3 items. I know how to write this in sql but it seems I can't get a to a sql expression box from the report view/text box. I can get to the text box properties but that only allows me to open up the expression builder. So is there a way to sum the top 3 in expression builder?
Is there way to nest two different...
|
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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.
| |