Microsoft
Software
Hardware
Network
Question : Problem with SQL syntax
I want to create a combo box with the source from a table but I want to insert an item at the top of the list. eg.
(None)
Item 1
Item 2
Item 3
etc.
I've done it many times in the past, but forgotten the syntax.
Thanks in advance.
Answer : Problem with SQL syntax
You would use a union query:
Select "(None)" From SomeTableName
Union
Select AField FromYourTableName
The Number and data type of the fields must match in each select statement.
Random Solutions
Microsoft Access ADP file and Office Service Pack 3 problem
IIS7 won't parse classic ASP / VBScript
Block DNS Lookups for certain domains
Need to connect a DataGridView with a database
MS Access GetOleDbSchemaTable DATA_TYPES and COLUMN_FLAGS questions
Automatically decline meeting request for a specific meeting on the calendar
How do I increase or turn on range locking.
Pivot Chart Grand Total
create a yes no messagebox in asp.net
Splice reports together for duplex printing?