add value to results returned by a query

G

Guest

Good morning,

I have a very simple query that returns a lists of reports. I use this
listing to populate a listbox. I would like to know how I can populate the
listbox with the values of the query + the entry "DRM Report"?

How can I add an extra entry into the results returned by the query?

Thank you,

Daniel
 
D

Duane Hookom

I'm not sure why you didn't provide the "very simple query"...
Since all of my report names begin with "rpt", I would use a union query
with SQL like:

SELECT Name as ReportName
FROM msysObjects
WHERE Name Like "rpt*"
UNION
SELECT "DRM Report"
FROM msysObjects;
 
M

Marshall Barton

Daniel said:
Good morning,

I have a very simple query that returns a lists of reports. I use this
listing to populate a listbox. I would like to know how I can populate the
listbox with the values of the query + the entry "DRM Report"?

How can I add an extra entry into the results returned by the query?


Add a description field to the table of reports so your
query can retrieve both values. Then use the standard list
box mechanisms (BoundColumn, ColumnWidths, etc).
 

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