Hello, I have been having a little bit of a problem figuring this one out. using 2007.
I'm trying to add a listbox to my form that only displays records from a table where the 1st field has the same value as the record currently displayed on the form.
For example, if the record I am looking at on the form has a fldA value of "Horse", then I want the listbox to return all records from tblB where fldA has a value of "Horse".
I tried adding this code to both the Before Update and Row Source, but it didn't work for me....
I'm trying to add a listbox to my form that only displays records from a table where the 1st field has the same value as the record currently displayed on the form.
For example, if the record I am looking at on the form has a fldA value of "Horse", then I want the listbox to return all records from tblB where fldA has a value of "Horse".
I tried adding this code to both the Before Update and Row Source, but it didn't work for me....
Code:
SELECT tblB.fldB FROM tblB WHERE tblB.fldA = '" & fldA.Value & "'