<%dim crumb crumb="SQL Choose Command Example" Crumb2="Choose Query Example Download" crumb1="SQL Choose Function Example" %> SQL Choose Command Downloadable Example
Home  Fees/Services  Access 2010 Template  Access Tutorial  Access Download  Articles  Search  Contact  Privacy  Links

<%if len(crumb2)>2 then response.write crumb2 else response.write ">

Open Email Using SendObject Access Download

User Inactivity Logout VBA Code

Disable Shift Key Demo

Send Email Microsoft Access Tutorial Download (Advanced)

Sequential Counter in Query

Multi Select List Box Query Parameters

Row Level Data Security

Programming MS Access Security Alternative

Single User Inventory Calculations Download

How To Perform Multi-User Inventory Calculations

Make Dependent Combo Box Code MS Access Tutorial

Union Query Example (Simple)

Union Query (Advanced) Access Tutorial

How To Fill Fields From Combo Box

Use Global Variables as Parameters

Continuous Form Dependent Combo Box

How To Program Continuous-Continuous Master/Detail Forms

Access Bar Chart / Bar Graph

Programming Crosstab Query Example

TransferText & OutputTo Microsoft Access

DoCmd.OpenForm & OpenArgs VBA Example

Running Sum Query Method

Choose Command Dynamic SQL Order By

Access Conditional Format

Access Report Banding

Popup Form Control Method

<% gnum="7575531119" %>

Choose Command in Microsoft Access

The SQL Choose command is a great function for both visual basic and SQL queries.  In our downloadable example we demonstrate using the choose function to allow the user to select the sort order for a query.

This query can be used as the record source for a report.  The end result of using the choose command is a dynamic order by clause for the query and the report output.

You can use the choose command in all parts of an SQL query except the From Clause ( I think ).  We hope to include the choose function examples for the select clause in the near future.  You can review further discussion and example of the choose command in the SQL Select clause in our Developer Tutorials section.

Use this link to download and run our SQL Choose Command Example Download.

Access SQL Choose Function Example

Microsoft Office:
MS Access 2003
Access 2007
Access 2010
Access 2013
Access 2016
<% dim rnum Randomize rnum = Int(Rnd * 10) + 1 response.write " Updated On " & now-rnum %>

Contact Information

<% Response.write "Copyright 2000-" & year(now) & " Blue Claw Database Design" %>

MS Access 2013, Access 2010 & Microsoft Office 2007