Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / July 2006

Tip: Looking for answers? Try searching our database.

add value to results returned by a query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel - 02 Jul 2006 15:26 GMT
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
Duane Hookom - 02 Jul 2006 16:24 GMT
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;

Signature

Duane Hookom
MS Access MVP

> Good morning,
>
[quoted text clipped - 8 lines]
>
> Daniel
Marshall Barton - 02 Jul 2006 16:37 GMT
>Good morning,
>
[quoted text clipped - 3 lines]
>
>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).

Signature

Marsh
MVP [MS Access]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.