Advertisement

07.07.2008 at 08:10AM PDT, ID: 23543598
[x]
Attachment Details

Linking fields with IDs and having looked-up values in combo boxes

Asked by theskintman in Microsoft Access Database

Tags: Microsoft, Access, 2002, VBA

I am trying to create a simple customer support database that records what versions of which software products they own. I have three tables: system, productversion and product (trimmed down to the relevant fields here):

SYSTEM
----
systemid - primary key
productid - links to productversion.productversionid

PRODUCTVERSION
----
productversionid - primary key
productid - links to product.productid
versiontext - e.g. "v2.4a (trial version)"

PRODUCT
----
productid - primary key
productname - e.g. "MyProduct Express Edition"

What I have therefore is a product, which has several versions for the user to pick from. So on my SYSTEM form, I don't know how to get values looked up so when I drop a combo on the form, it shows the names of the products looked up in PRODUCT instead of the productid from SYSTEM.

In other words, I have a combobox that shows numbers instead of names, which is kind of correct in the data sense (it's showing the primary key values) but not ideal, because I want the name.

The second part of my problem is the version combo. This has the same problem as above, in that it just shows PRODUCTVERSIONID instead of VERSIONTEXT, but it also needs to be able to narrow the list down so that instead of showing all available versions for every software product, the list updates to only show VERSIONTEXTs for the current product.

I have *almost* achieved my goal, but only by using unbound controls that I update myself - I'm sure there's a better, more elegant and less clunky way to do this...

Hopefully my explanation isn't too confusing - if you needs any clarification, just ask. All help much appreciated!Start Free Trial
[+][-]07.07.2008 at 08:41AM PDT, ID: 21946025

View this solution now by starting your 7-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: Microsoft, Access, 2002, VBA
Sign Up Now!
Solution Provided By: peter57r
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.07.2008 at 09:35AM PDT, ID: 21946505

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

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

 
[+][-]07.14.2008 at 09:13AM PDT, ID: 21999424

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628