List box help

D

d9pierce

HI, Can someone please help me out?
I am rather new to Access and using access2002! I am creating a db of
clients and contacts. I can do many things but I cannot figure out how
to create a form with a listbox that shows only the contact names of
this form record. I can get them to show all contact names but not just
relating to the companyName in my record.

Can someone show me an example of a form with a listbox that shows only
the related records in that list box relating tot he form? Or tell me
how to do this?

totally lost!
 
R

Rick Brandt

HI, Can someone please help me out?
I am rather new to Access and using access2002! I am creating a db of
clients and contacts. I can do many things but I cannot figure out how
to create a form with a listbox that shows only the contact names of
this form record. I can get them to show all contact names but not
just relating to the companyName in my record.

Can someone show me an example of a form with a listbox that shows
only the related records in that list box relating tot he form? Or
tell me how to do this?

totally lost!

Your ListBox needs to use a query for its RowSource that makes a reference back
to your form.

SELECT ContactName
FROM Contacts
WHERE ClientID = Forms!YourFormName!ClientID
 
D

d9pierce

Thanks Rick,
I sent you an email with a zip file of a db I have been working with to
ask another question
 

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