ms access training - if statements

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

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

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.

RE: If statements

Try

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

RE: If statements

Perfect! Thanks very much.


 

Access tip:

Combo box for finding records

You can use a combo box in a form to look up a record. If you place the comb box in the Form header, by then selcting they a field type from the drop down loist, you will see the record for it

View all Access hints and tips


Server loaded in 0.09 secs.