Hi all,
I'm a newbie with Access (although I do have some experience programming other MS products (like VB)) so I'm not sure I'm even asking this the right way, but here goes:
I have a database with 3 tables:
tblRequirements contains requirements and has the following fields:
Number (Text)(PK) - Requirement number (e.g. 10.2.3)
Title (Text) - Requirement title
Description (Memo) - A detailed description of the requirement
tblSolutions contains descriptions of various solutions:
Key (AutoNumber)(PK)- An auto-generated primary key
Vendor (Text) - Name of vendor that supplies the solution
Name (Text) - Name of product/solution
Description (Memo) - Details of the solution
The third table, tblReqtsSolsMap, is a junction table that maps requirements and solutions. Since a given requirement can be adressed by more than one solution, and a given solution can address more than one requirement, it's a many-to-many mapping. Here are the fields:
Key (AutoNumber)(PK)- An auto-generated primary key
RequirementKey (Text) - The key of the requirement being mapped (from tblRequirements)
SolutionKey (Number) - The key of the solution being mapped (from tblSolutions)
I've managed to create individual forms for entering the requirements and solutions info, and I've started on a form that allows the user to map solutions to requirements, but I'm stuck on one piece of functionality I'm trying to add. Right now the 'mapping' form (a data entry form) has two side-by-side list boxes. The one of the left lists the number and title of the requirement, and the one on the right lists the company and name of the solution. If a user selects a requirement in the left listbox and a solution in the right listbox and clicks on the 'Add Map' button, everything works fine - a new (correct) mapping record is created in the tblReqtsSolsMap table.
What I'd like to add is a text box(?) underneath the left listbox (Requirements) that shows the 'Description' memo field for whatever requirement the user selects in the 'Requirements' listbox to provide them with more details so they can map the correct solution. Since the 'Description' field in tblRequirements is a memo field and usually fairly long I can't effectively include it in the requirements list box.
What would be the most effective way to display detailed information for whatever item is currently selected in the listbox? I've looked through the Access help and several books, and a sub-form might work, but I have no clue how to trigger an update when the selection in the Requirements listbox changes, then pass the associated Requirements Number to the sub-form so it can retrieve and display the appropriate Description.
If someone can just describe the basic steps involved that would be great - I'm not even sure I'm searching on the right words when I'm researching this.
Thanx.
John
I'm a newbie with Access (although I do have some experience programming other MS products (like VB)) so I'm not sure I'm even asking this the right way, but here goes:
I have a database with 3 tables:
tblRequirements contains requirements and has the following fields:
Number (Text)(PK) - Requirement number (e.g. 10.2.3)
Title (Text) - Requirement title
Description (Memo) - A detailed description of the requirement
tblSolutions contains descriptions of various solutions:
Key (AutoNumber)(PK)- An auto-generated primary key
Vendor (Text) - Name of vendor that supplies the solution
Name (Text) - Name of product/solution
Description (Memo) - Details of the solution
The third table, tblReqtsSolsMap, is a junction table that maps requirements and solutions. Since a given requirement can be adressed by more than one solution, and a given solution can address more than one requirement, it's a many-to-many mapping. Here are the fields:
Key (AutoNumber)(PK)- An auto-generated primary key
RequirementKey (Text) - The key of the requirement being mapped (from tblRequirements)
SolutionKey (Number) - The key of the solution being mapped (from tblSolutions)
I've managed to create individual forms for entering the requirements and solutions info, and I've started on a form that allows the user to map solutions to requirements, but I'm stuck on one piece of functionality I'm trying to add. Right now the 'mapping' form (a data entry form) has two side-by-side list boxes. The one of the left lists the number and title of the requirement, and the one on the right lists the company and name of the solution. If a user selects a requirement in the left listbox and a solution in the right listbox and clicks on the 'Add Map' button, everything works fine - a new (correct) mapping record is created in the tblReqtsSolsMap table.
What I'd like to add is a text box(?) underneath the left listbox (Requirements) that shows the 'Description' memo field for whatever requirement the user selects in the 'Requirements' listbox to provide them with more details so they can map the correct solution. Since the 'Description' field in tblRequirements is a memo field and usually fairly long I can't effectively include it in the requirements list box.
What would be the most effective way to display detailed information for whatever item is currently selected in the listbox? I've looked through the Access help and several books, and a sub-form might work, but I have no clue how to trigger an update when the selection in the Requirements listbox changes, then pass the associated Requirements Number to the sub-form so it can retrieve and display the appropriate Description.
If someone can just describe the basic steps involved that would be great - I'm not even sure I'm searching on the right words when I'm researching this.
Thanx.
John