creating reports from filtered lists (1 Viewer)

skate

Registered User.
Local time
Today, 23:05
Joined
May 22, 2002
Messages
136
How do I do this? Anyone know? My listbox filters according to a search and I want to give my users the option to print the filtered list. How? HELLLPP!! Thanks!
 

edtab

Registered User.
Local time
Today, 23:05
Joined
Mar 30, 2002
Messages
257
a) Create a report using the same data source as your list box.

b) Create a command button on the same form where your listbox is.

c) Run the report using a "Docmd.openreport" in the "Onclick" property of the command button.


edtab
 

skate

Registered User.
Local time
Today, 23:05
Joined
May 22, 2002
Messages
136
but if say the user searches for Canada, and all items are filtered to show only based on the criteria how does that effect the report? Then what if the user searches for something else?
 

edtab

Registered User.
Local time
Today, 23:05
Joined
Mar 30, 2002
Messages
257
Whatever the user filters will show in your list... at the same time, the same items will also show in your report if you choose to run it.

edtab
 

skate

Registered User.
Local time
Today, 23:05
Joined
May 22, 2002
Messages
136
see, it seems like too much work if i make a query for every possible search criteria the user will enter. Is there a way I can use code such that the value entered is taken and put into the query?
 

skate

Registered User.
Local time
Today, 23:05
Joined
May 22, 2002
Messages
136
see, it seems like too much work if i make a query for every possible search criteria the user will enter. Is there a way I can use code such that the value entered is taken and put into the query?
 

Users who are viewing this thread

Top Bottom