You are here:About>Computing & Technology>Databases> Microsoft Access> Access Function Library> Microsoft Access Function Library: Choose()
About.comDatabases
Newsletters & RSSEmail to a friendSubmit to Digg

Microsoft Access Function Library: Choose()

From Mike Chapple,
Your Guide to Databases.
FREE Newsletter. Sign Up Now!
Function: Choose()

Purpose: The Choose() function is used to select an item from a list of arguments.

Usage: Choose(index, item1, item2, …, itemn, args)

Returns: Value of the indexth argument.

Examples and Special Cases
Choose(1, “apple”, “orange”, “banana”) = “apple”
Choose(2, “apple”, “orange”, “banana”) = “orange”
Choose(0, “apple”, “orange”, “banana”) = NULL
Choose(4, “apple”, “orange”, “banana”) = NULL
 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.