Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help setting up on-the-fly reports

Status
Not open for further replies.

Shinken

Technical User
Aug 26, 2002
155
US
I’m setting up a small DB for our office and the major user wants to create reports on the fly.
When I ask what he wants, he wants the world, such as “How many meetings between 2/2/2002
and 5/5/2002 were attended by armadillos with brown eyes and green hair, who brought large
handbags with them”, or a similar report with percentage rather than total. He’s created a few
reports from Excel and wants to be able to do the same thing from the Access DB I’m building
with about the same amount of learning curve as the Excel reports. Unless there’s a Report
Wizard that has a fast learning curve, I know from experience that he doesn’t have the patience to
learn how to create queries (even using wizards) and reports (even from templates), and I don’t
have the time to do it for him.

That’s the bad news. The sort of good news is that although the DB is relational, he’s only
interested in the data from one table in the DB.

I’m thinking of something like this, but haven’t tried to implement it yet.

1. He brings up a report template.

2. The report template calls a form with a checkboxes or option boxes. Essentially a menu from
which he can select what he wants for the report. Example is as follows:

* OptionButtons for [attended], a checkbox field: Total attended; Average attended; Percent
attended
* Criteria for [DateAttended], a date field: From_________ To__________

3. Each check item has a string attached to it and the checked items are converted to strings that
are used to create a SELECT statement, which in turn modifies/creates an on-the-fly query used
by a report.

4. When done, the form returns the user to a screen display of the created report, which he can
then either re-do, print, or cancel.

I’m still thinking about how to approach this. Is something like the above reasonably feasible? Is
there a better way to create on-the-fly reports that he can do with a minimal learning curve?

Thanks
 
Hi

A bit of Lateral Thinking, if your troublesome user is an expert with Excel, why not just give him (or her) the ability to select data from the table and export it to Excel, the he (She) can play with it as much as they wish.

You could (fairly) easily give them a screen showing the available columns in the table (by reference to the TableDef), and you could give them the ability to specify criteria to select a subset of the data, plus if needed an Order by dialog.

I know it is not a direct answer to your question, but parhaps it is a solution.

Regards
Ken Reay
Freelance Developer
kenneth.reay@talk21.com
 
Hi

He could use the DDE option in Excel from where he could link to the Access database and retrieve the data required by using the Query wizard from with in Excel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top