Calculation field in query

J

John Vinson

can if statement be included in the Calculation field in query?

Yes; use the IIF function. Open the VBA editor (by typing Ctrl-G for
instance) to bring up the correct help file, and search for help on
IIF. In essence, you'ld use

CalculatedField: IIF(LogicalExpression, ValueIfTrue, ValueIfFalse)


John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top