Combo Box

K

kft10

Hi all,

I have combo box contains client_code, client_name and program. I'd like to
eliminate the list based on the program that I entered before. Here is the
list:
Client_code Client_name Program
0001 Andrea Ali abc
0005 Ron Ajemian aaa
0003 Andy Gip abc
0004 Loren Yip zzz
0007 Gloria Yip abc

So If I input the Program field, let's say program 'abc', when I click the
drop down menu, the combo box will give me the list for client Andrea Ali,
Andy Gip and Gloria Yip only.

Is anyone can give me idea? Thank you in advance.

Rgds,
KF
 
K

Klatuu

Filter the Client Combo based on the value of the Program Combo:

SELECT Cliend_Code, Client_Name FROM YourTable WHERE Program = cboPrgram;

Then in the After Update event of the program combo, requeryy the client
combo.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top