All, Thanks in advance for this. My new DB project has a lookup table I created to limit the selection of the State a project is in to a list.
On form "subfrmDocumentEntry" I use a combobox that displays the StateAbbr (e.g., "GA") but the table I'm holding this in keeps the R4StateID (e.g., "3"). The DB also has a lookup table I import (don't own it) with a list of Sponsors/Grantees. It only contains values that are StateAbbr ("GA") and not R4StateID ("3").
I created this query (luqryGranteeStateAbbrLink) to relate the two lookup tables.
SELECT lutblR4States.R4StateID, lutblR4States.StateAbbr, lutblR4States.StateName, lutblTEAMID.Grantee
FROM lutblR4States INNER JOIN lutblTEAMID ON lutblR4States.StateAbbr = lutblTEAMID.State;
...and I set the combobox I use to select Grantee (cmbSponsorGranteeName) with the following row source:
SELECT luqryGranteeStateAbbrLink.StateAbbr, luqryGranteeStateAbbrLink.StateName, luqryGranteeStateAbbrLink.Grantee
FROM luqryGranteeStateAbbrLink
WHERE (((luqryGranteeStateAbbrLink.R4StateID)=[Forms]![subfrmDocumentEntry]![cmbDocumentState]))
ORDER BY luqryGranteeStateAbbrLink.StateAbbr;
cmbDocumentState is the control for "What state is this project in?" I'm attempting to filter the list in cmbSponsorGranteeName with the value in cmbDocumentState. So, if someone selects "GA" in the former with R4TEAMID=3, only values where the StateAbbr="GA" appear in cmbSponsorGranteeName.
I think I'm on the right track but with the above SQL, cmbSponsorGranteeName shows nothing in the drop down and I'm stumped.
On form "subfrmDocumentEntry" I use a combobox that displays the StateAbbr (e.g., "GA") but the table I'm holding this in keeps the R4StateID (e.g., "3"). The DB also has a lookup table I import (don't own it) with a list of Sponsors/Grantees. It only contains values that are StateAbbr ("GA") and not R4StateID ("3").
I created this query (luqryGranteeStateAbbrLink) to relate the two lookup tables.
SELECT lutblR4States.R4StateID, lutblR4States.StateAbbr, lutblR4States.StateName, lutblTEAMID.Grantee
FROM lutblR4States INNER JOIN lutblTEAMID ON lutblR4States.StateAbbr = lutblTEAMID.State;
...and I set the combobox I use to select Grantee (cmbSponsorGranteeName) with the following row source:
SELECT luqryGranteeStateAbbrLink.StateAbbr, luqryGranteeStateAbbrLink.StateName, luqryGranteeStateAbbrLink.Grantee
FROM luqryGranteeStateAbbrLink
WHERE (((luqryGranteeStateAbbrLink.R4StateID)=[Forms]![subfrmDocumentEntry]![cmbDocumentState]))
ORDER BY luqryGranteeStateAbbrLink.StateAbbr;
cmbDocumentState is the control for "What state is this project in?" I'm attempting to filter the list in cmbSponsorGranteeName with the value in cmbDocumentState. So, if someone selects "GA" in the former with R4TEAMID=3, only values where the StateAbbr="GA" appear in cmbSponsorGranteeName.
I think I'm on the right track but with the above SQL, cmbSponsorGranteeName shows nothing in the drop down and I'm stumped.