SQL Query to compose a Combo Box List

K

Karen

I use the following to create a 'list' for a combo-box on a form

SELECT Agency.AgencyID, Agency.Name, Agency.AgencyType, Agency.Abbreviation
FROM Agency WHERE (((Agency.AgencyType)="Adjusting")) UNION SELECT
0,"(New)", "Adjusting", "(New)" FROM Agency
ORDER BY Agency.Name;

It pulls info from the Agency table AND adds '(New)' as a choice. If
'(New)' is selected then another form opens to caption the data for a 'new'
Agency.

When I clear the tables in the back-end database, then compact to start with
a fresh database, the 'list' for the combobox is completely blank whereas
what I want to see it '(New)' only since it is a 'clean' database.

It does not, the 'list' is completely empty. What am I doing wrong?
 
K

Karen

Hi All,

With no response to this post, does that mean that it appears OK, the query
should include the '(New)' choice in the combobox list?

--
Karen
I use the following to create a 'list' for a combo-box on a form

SELECT Agency.AgencyID, Agency.Name, Agency.AgencyType, Agency.Abbreviation
FROM Agency WHERE (((Agency.AgencyType)="Adjusting")) UNION SELECT
0,"(New)", "Adjusting", "(New)" FROM Agency
ORDER BY Agency.Name;

It pulls info from the Agency table AND adds '(New)' as a choice. If
'(New)' is selected then another form opens to caption the data for a 'new'
Agency.

When I clear the tables in the back-end database, then compact to start with
a fresh database, the 'list' for the combobox is completely blank whereas
what I want to see it '(New)' only since it is a 'clean' database.

It does not, the 'list' is completely empty. What am I doing wrong?
 

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