Display selected reports in a listbox

B

biganthony

Hello,

Is it possible to show only selected reports in a listbox? I can get all
reports listed there but I only want to display a selected list for my users.

Thanks - any help appreciated.

Regards
Anthony
 
D

Duane Hookom

I would never display a list of my report names to users since I use a naming
convention like "rptEmpPayroll" or "rptProduction" or "srptCompanyHeader". I
create a simple table of reports like:
ztblReports
rptObjectName
rptTitle (displayed in list box)
rptAuthor
rptStatus (is it ready?)
rptComments
I then base my list box on ztblReports.
 
B

biganthony

Duane,

Thanks for replying. How do I go about creating this table? Have you listed
the fields for the table? What if I only want to show selected reports in the
table that I have created with user-friendly names, rather than the ones I
called rptXXXXX etc?

Regards
Anthony


Duane said:
I would never display a list of my report names to users since I use a naming
convention like "rptEmpPayroll" or "rptProduction" or "srptCompanyHeader". I
create a simple table of reports like:
ztblReports
rptObjectName
rptTitle (displayed in list box)
rptAuthor
rptStatus (is it ready?)
rptComments
I then base my list box on ztblReports.
[quoted text clipped - 5 lines]
Regards
Anthony
 
D

Duane Hookom

1) How do I go about creating this table?
a the same way you create any table
2) Have you listed the fields for the table?
a Yes
3) What if I only want to show selected reports ...?
a You set the list box properties to display the title field rather than
the report name
--
Duane Hookom
Microsoft Access MVP


biganthony said:
Duane,

Thanks for replying. How do I go about creating this table? Have you listed
the fields for the table? What if I only want to show selected reports in the
table that I have created with user-friendly names, rather than the ones I
called rptXXXXX etc?

Regards
Anthony


Duane said:
I would never display a list of my report names to users since I use a naming
convention like "rptEmpPayroll" or "rptProduction" or "srptCompanyHeader". I
create a simple table of reports like:
ztblReports
rptObjectName
rptTitle (displayed in list box)
rptAuthor
rptStatus (is it ready?)
rptComments
I then base my list box on ztblReports.
[quoted text clipped - 5 lines]
Regards
Anthony
 
B

biganthony via AccessMonster.com

Duane.

I have created a listbox that lists all my reports by using this code in the
source row:

SELECT [Name] FROM MsysObjects
WHERE (([Type] = -32764) AND ([Name] Not Like "~*") AND ([Name] Not Like
"MSys*"))
ORDER BY [Name];

I have read and understand what the code above does. But, how can I get the
listbox to list only a selected group of reports - I am totally stuck. I
thought I could put something in the description field for the reports I want
listed and then get the above query to display only those where the
description matches the criteria in the description field but that did not
work.

Regards
Anthony



Duane said:
1) How do I go about creating this table?
a the same way you create any table
2) Have you listed the fields for the table?
a Yes
3) What if I only want to show selected reports ...?
a You set the list box properties to display the title field rather than
the report name
[quoted text clipped - 22 lines]
 
D

Duane Hookom

So, you are not accepting my advice and not telling me why? What's wrong with
maintaining a small table of report names, titles, and descriptions? This
should take about 5 minutes to implement.

--
Duane Hookom
Microsoft Access MVP


biganthony via AccessMonster.com said:
Duane.

I have created a listbox that lists all my reports by using this code in the
source row:

SELECT [Name] FROM MsysObjects
WHERE (([Type] = -32764) AND ([Name] Not Like "~*") AND ([Name] Not Like
"MSys*"))
ORDER BY [Name];

I have read and understand what the code above does. But, how can I get the
listbox to list only a selected group of reports - I am totally stuck. I
thought I could put something in the description field for the reports I want
listed and then get the above query to display only those where the
description matches the criteria in the description field but that did not
work.

Regards
Anthony



Duane said:
1) How do I go about creating this table?
a the same way you create any table
2) Have you listed the fields for the table?
a Yes
3) What if I only want to show selected reports ...?
a You set the list box properties to display the title field rather than
the report name
[quoted text clipped - 22 lines]
Regards
Anthony
 

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