S
smjohnson1
I am trying to make a combo box that looks up information from an
existing table, using filters such that only those records show that
match the filter. This is the query I am currently using:
Row Source = SELECT DISTINCTROW tblMembers.*
FROM tblMembers WHERE
(((tblMembers.Current)=Yes)) ORDER BY tblMembers.ID;
Where "Current" is a "Yes/No" field in the table.
If I change a members "Current" status to "No" their information no
longer appears in the form I am using. I would like to be able to
still see their information in past entries, but only see current
members for making new entries. It was recommended that I use a query
in the following form.
SELECT ID, LN & ", " & FN AS Dev
FROM tblDeveloper
WHERE ActiveSW=True OR ID = NZ([Forms]![frmActivities]![DevID],0)
ORDER BY LN, FN;
However, I am somewhat new to this, and it doesn't entirely make sense
to me. I do not know what ID, LN or FN are. Could someone explain
this to me or suggest another way in which I can use a combo box the
way I have explained.
Thanks so much in advance for your help.
existing table, using filters such that only those records show that
match the filter. This is the query I am currently using:
Row Source = SELECT DISTINCTROW tblMembers.*
FROM tblMembers WHERE
(((tblMembers.Current)=Yes)) ORDER BY tblMembers.ID;
Where "Current" is a "Yes/No" field in the table.
If I change a members "Current" status to "No" their information no
longer appears in the form I am using. I would like to be able to
still see their information in past entries, but only see current
members for making new entries. It was recommended that I use a query
in the following form.
SELECT ID, LN & ", " & FN AS Dev
FROM tblDeveloper
WHERE ActiveSW=True OR ID = NZ([Forms]![frmActivities]![DevID],0)
ORDER BY LN, FN;
However, I am somewhat new to this, and it doesn't entirely make sense
to me. I do not know what ID, LN or FN are. Could someone explain
this to me or suggest another way in which I can use a combo box the
way I have explained.
Thanks so much in advance for your help.