Discussion Locked

Access 97 User Friendly Query Screen

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to develop a user friendly query screen that performs the following:
Drop down list of all available fields for any table in the database, for a maximum of five selection fields, and ten additional non selection fields
not all possible fields, selection or otherwise, will be chosen, so there could be as few as one selection field chosen
For selection fields, a drop down list of all entered data in that field will be displayed

All chosen fields are then passed to a report

I need an outline of how to approach this, and specific code for the more difficult tasks

6 replies

by donq

You (most likely) need to reword your requirements. Normalized database structures display Tables with 1 to Many relationships to Fields.

As currently worded it sounds as though you are mixing some Top 5 query requirements with a pure Select requirement???

At any rate your combo box Row Source property will be an SQL statement delivering what you want in each box - then a report query will use your selected values to deliver your report recordset!

Try working on your needs a little and then reword and resubmit your question with any specific problems (and fewer points).

by jhillison

What my client wants is kind of a cross between the flexibility of the query design screen (ie, choose any file/field to be listed) and the user friendliness of a filter screen (ie, choose from a list of all entered values for those fields). Can this even be done?

by laurenm

As far as I know, you can't automate this (the MSysObjects table doesn't give you column names), but you can create tables that contain the information, and use that as you would any other data, and pass it to the report. It's an annoying bit of data entry, but Access wasn't really designed to do truly interesting stuff with the database schema.

I think this is more complex than I can address in 1930 characters, if you'll email me the output of the documenter, and a little more detail, I can probably give you some less fuzzy help.

by laurenm

Sorry, this is my first attempt at answering a question here. My email is lauren@squakmt.com

This discussion is closed to new replies.