ms access training - if statements
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » ms access training - If statements

ms access training - If statements

resolvedResolved · Low Priority · Version Standard

replyReply Thu 19 Jul 2007, 15:36Delegate Sin said...

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

If statements

I am trying to set up a statement that does the following:
Column 1 - has data
Column 2 - may or may not have data
Column 3 - is to contain the IFf statement which will check columns 1&2 and if 2 is blank, insert the contents of 1. If not, insert the contents of column 2.

Currently I can get it to insert the contents of either one or 2 at a time but not pick from both.

For upcoming training course dates see: Pricing & availability

replyReply Fri 20 Jul 2007, 10:29Trainer Richard said...

RE: If statements

Try

=IIF([field2] is null, [field1],[field2])

replyReply Fri 20 Jul 2007, 15:08Delegate Sin said...

RE: If statements

Perfect! Thanks very much.

 

Access tip:

Hide Access Tables

One method of stopping your Access tables appearing in Database window, is to rename the table(s) with the prefix usys.

This converts the table into a system object, which cannot be viewed in the Database window.

You can show system objects in the Database window by the following:

Step 1: On the Tools menu, click Options.
Step 2: Click the View tab.
Under Show, select the System Objects check box.
Click OK.

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard