access+training+courses - calculations expressions queries
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » access+training+courses - Calculations (expressions) in queries

access+training+courses - Calculations (expressions) in queries

The UK's most regular instructor-led training courses.
Training information: access+training+courses · Microsoft.access.courses · Microsoft Access Training
See also · microsoft access training · access vba courses · access database course

resolvedResolved · Low Priority · Version Standard

Calculations (expressions) in queries

Sinéad has attended:
Access Intermediate course
Access Advanced course
Access VBA course

by - delegate Sinéad [15 posts] (2007 May 23 Wed, 10:44) replyReply

I have a query with three with three amounts: Ammount 1, 2 & 3. I want to build a calculation in a fourth column that says that if the total from these three is 0, then put the word yes in this 4th column, and if the cumulative total is greater than 0, then put the word No in the 4th column. How do I do this?

Access Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Dec 3 Wed Southwark 5 book now £219 £235
2003 2008 Dec 19 Fri Bloomsbury 5 book now £219 £235
2003 2008 Dec 24 Wed Bayswater 0 FULL    
2003 2009 Jan 7 Wed Southwark 7 book now £203 £230
2003 2009 Jan 14 Wed Bloomsbury 8 book now £187 £224
2003 2009 Jan 23 Fri Bloomsbury 7 book now £203 £230
Full Schedule: See all 45 Access Advanced course dates.
Bookings currently available until 25th November 2009.

RE: calculations (expressions) in queries

by - trainer Richard platinum contributer[818 posts] (2007 May 24 Thu, 16:42) replyReply

Hi

You can use the IIF function to do this.
Add the below to a new field name in your query.

Expr1: IIf([result]>=0,"Yes","No")


You might need to adapt it to your purpose but essentially:

for example, embed another IIF statement in the false answer part of the statement.

Expr1: IIf([result]=0,"Yes",IIf([result]>0,"Yes","No"))

That should work

Regards

Richard


Related articles

· Microsoft Access, an Efficient Database Tool
· Microsoft Access: Unleash the True Potential Today
· Quick Microsoft Access Course: Creating an Inventory Control Database in 8 Simple Steps
· The Benefits of Certified Microsoft Training in Access
· Microsoft Access 2007: New Features

Access tip:

Change The Default Font in Access 2003

You can change the default font in Access 2003 so that whenever you create a new database your preferred font is automatically set.

To change the default font:

1.From the menu bar select Tools.
2.Click Options.
3.Go to the Datasheet tab:
4.In the Default font section select your preferred font from the list of fonts e.g. Arial.
5.Select your preferred size from the size menu e.g. 12.
6.Click Apply.

Click on the Tables/queries tab:
1.In the Query Design font section select your preferred font from the list of fonts e.g. Arial.
2.Select your preferred size from the size menu e.g. 12.
3.Click Apply.
4.Click OK.

The default font for Access has now been changed.

View all Access hints and tips

Rate this page:
4.0/5 (3 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz