Union Query to pull contacts together but only for individual customer

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

Hi All,

I have combo box in my main form which pulls together all contacts
within my customers table with a union query. What i need to do is only
pull up the contacts replating to that client. I also want to select
this contact as the primary contact who will be on quotations ect ect


Thanks
 
Hi Michael,

Have the query driving your combo box use a where clause to limit the
records to only those contacts related to the client. eg:

Select ContactID, ContactName from tblContact where ContactClientID =
forms!frmClient.lngClientID

Hope that helps.

Damian.
 
Hi All,

I have combo box in my main form which pulls together all contacts
within my customers table with a union query. What i need to do is only
pull up the contacts replating to that client. I also want to select
this contact as the primary contact who will be on quotations ect ect


Thanks

We'd be glad to help if you could a) describe your table structure, b)
describe your query (post the SQL), and c) indicate what problem
you're having. Based on the above all I can say is "add criteria to
the appropriate query or queries" but since I don't have any idea how
your tables are structured, I can't suggest how that might be done.

John W. Vinson[MVP]
 

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

Similar Threads

UNION QUERY.. 3
Updating Query from Combo Box - PLEASE HELP! 1
Union Queries 4
Relationships and Form Query Problem 5
SQL "IF" Question 5
Union Queries 5
Union Query 6
A Real Stumper 3

Back
Top