Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box Question

Status
Not open for further replies.

nancier

MIS
Dec 27, 2004
50
US
I have a combo box that is set up so I choose from a table field list. Is there any way to have another value or a default value that isn't on the list?
Thanks

 
Use a Union query, but it has to be done in SQL, not in the QBE (Design View) window.

Sean.

SELECT tblProject.ProjectID AS ID
FROM tblProject WHERE (((tblProject.Inactive)=False))
UNION SELECT "-Add Project-" AS ID FROM tblProject
ORDER BY ID;
 
How are ya nancier . . . . .

[blue]perrymans[/blue] is on target here. However, not only is it [blue]easier to do in query design view[/blue], but when your done, its a matter of [purple]copying the SQL[/purple] and [purple]pasting it into the RowSource[/purple] of the combobox.. Because of this [blue]I hardly ever write SQL any more.[/blue]

Also have a look at the [blue]Value List[/blue] property. Values in the list are [blue]user defined.[/blue] Character count is limited to 2k (2048) however.

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top