[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Displaying records in hierarchal listview

Asked by jg0069_2002 in Microsoft Access Database

Tags: listview, displaying, records

Alright, heres an interesting question.

I'm developing a dynamic search interface for my MS Access database.  Basically the form is setup with a subform on the left that the user can scroll, that has a dozen or so combo boxes on it.  The right side of the form has a listview and the bottom has a toolbar.  The user selects his / her filter criteria from the combo boxes on the left and clicks "Search".  When the user clicks "Search", I open a recordset based and apply a filter and display the records in the listview.  Its a pretty simple concept, and is very user friendly.

Okay, that's the simple part.  The added twist comes in because I have multiple tables that I would like to search across.  There are 5 tables total and they are all related.  The tables that I have setup are shown below:

tblNotifications (Main Table)
tblNotifications_Items (Linked to tblNotifications on field NotificationNum) (1 to Many)
tblNotifications_Causes (Linked to tblNotifications_Items on field NotificationNum and ItemNum) (1 to Many)
tblNotifications_Activities (Linked to tblNotifications_Items on field NotificationNum and ItemNum) (1 to Many)
tblEquipment (Linked to tblNotifications on field EquipID) (Many to 1)

The added twist comes in when I'm trying to let the user specify filter criteria for the linked tables.  Basically what I would like to do is let the user specify whatever filter criteria they want, which is already setup on the subform on the left.  

I want to be able to list the records in a hierarchal listview of sorts.  I'm not really sure how I can do this, what I am looking for is something where a line item is listed for each record in tblNotifications and then there is a plus sign next to the line item that would display the related record in tblNotifications_Items and then there would be a plus sign for the related records in tblNotifications_Causes and tblNotifcations_Activities.  The link to tblEquipment is just a lookup type thing and its information is displayed on the line with the records from tblNotifications.  

I guess what I'm looking for is someway to do this using the listview control.  I remember seeing an example of a "hierarchal" listview in VB, but don't know if I can adapt it to VBA in MS Access.  If I can't do it using a listview, I'm sure there's got to be someway to do it with a subform that shows a datasheet where I can specify the recordsource for the datasheet with a SQL statement.

Any help or suggestions would be greatly... greatly... appreciated...

Thanks,

JG

[+][-]11/29/04 08:55 PM, ID: 12702842Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Microsoft Access Database
Tags: listview, displaying, records
Sign Up Now!
Solution Provided By: harfang
Participating Experts: 2
Solution Grade: A
 
[+][-]11/30/04 02:29 AM, ID: 12704257Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/30/04 04:17 AM, ID: 12704930Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06/10/05 08:52 AM, ID: 14189833Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06/14/05 12:26 PM, ID: 14214995Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06/18/05 06:25 AM, ID: 14248178Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89