tweaked2005
Technical User
So I apologize in advance. I know this question continually pops up, but I'm to the point of frustrated and have no idea what to try next. My problem seems simple, and I've read all the postings I could find about the issue, but nothing I seem to try works.
Scenario:
tblCustomers
<customerID>
<FirstName>
<LastName>
<Adress...>
<...more customer info>
I have a form with multiple combo boxes (for now we'll stick to two to be simple). One for first name, and one for second name. So when I initially added these two combo boxes I was able to independently select the info displayed in the rest of the form based on my selection. As others have asked, I want to almost "drill down" the info. So for example, if the user selected "Smith" for a last name, it would only give selections for Smith in the 2nd combo box (first name), and the user could the select the desired first name (displaying that record(s) info in the lower part of the form.
I've tried creating the row source of my combo2 box to query based on the selection in my combo1 box - either I'm getting errors, or the second box is just empty.
I've tried lots of different options (trying to follow the advice in similar post). My latest SQL code is:
SELECT TBLCUSTOMERS.customerId, TBLCUSTOMERS.firstName, TBLCUSTOMERS.lastName
FROM TBLCUSTOMERS
WHERE (((TBLCUSTOMERS.lastName)=[FORMS]![FRMSEARCH]![COMBO1]));
I really don't know where to start. At this point - I'm doubting anything I know about access. Any help at all is greatly appreciated.
Thanks!
Scenario:
tblCustomers
<customerID>
<FirstName>
<LastName>
<Adress...>
<...more customer info>
I have a form with multiple combo boxes (for now we'll stick to two to be simple). One for first name, and one for second name. So when I initially added these two combo boxes I was able to independently select the info displayed in the rest of the form based on my selection. As others have asked, I want to almost "drill down" the info. So for example, if the user selected "Smith" for a last name, it would only give selections for Smith in the 2nd combo box (first name), and the user could the select the desired first name (displaying that record(s) info in the lower part of the form.
I've tried creating the row source of my combo2 box to query based on the selection in my combo1 box - either I'm getting errors, or the second box is just empty.
I've tried lots of different options (trying to follow the advice in similar post). My latest SQL code is:
SELECT TBLCUSTOMERS.customerId, TBLCUSTOMERS.firstName, TBLCUSTOMERS.lastName
FROM TBLCUSTOMERS
WHERE (((TBLCUSTOMERS.lastName)=[FORMS]![FRMSEARCH]![COMBO1]));
I really don't know where to start. At this point - I'm doubting anything I know about access. Any help at all is greatly appreciated.
Thanks!