dbTalk Databases Forums  

Finding Contacts who are Customers

comp.databases.filemaker comp.databases.filemaker


Discuss Finding Contacts who are Customers in the comp.databases.filemaker forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
buck.matthew74@yahoo.com
 
Posts: n/a

Default Finding Contacts who are Customers - 01-04-2008 , 12:24 AM






IN CONTACTS table
I have a field that lists of contacts - (NameCompany).
Some NameCompany might be noted through a field drop down list as a
Customer.

On my Invoice Layout I want to create a Customer selection tool that
presents through a drop down Value Listl NameCompany that is Customers
only.

Presently my Customer selection tool is a NameCompany selection tool.
Invoice and Contacts are related through a LINES table. The
relationship between Contact and Invoice is manage accordingly:

INVOICE
kf_Contact_ID

LINES
kf_Contact_ID

CONTACTS
kp_Contact_ID

i imagine this is enough for you to understand my intention. How do I
handle this?

Thanks

Reply With Quote
  #2  
Old   
Grip
 
Posts: n/a

Default Re: Finding Contacts who are Customers - 01-04-2008 , 12:58 AM






On Jan 3, 11:24 pm, buck.matthe... (AT) yahoo (DOT) com wrote:
Quote:
IN CONTACTS table
I have a field that lists of contacts - (NameCompany).
Some NameCompany might be noted through a field drop down list as a
Customer.

On my Invoice Layout I want to create a Customer selection tool that
presents through a drop down Value Listl NameCompany that is Customers
only.

Presently my Customer selection tool is a NameCompany selection tool.
Invoice and Contacts are related through a LINES table. The
relationship between Contact and Invoice is manage accordingly:

INVOICE
kf_Contact_ID

LINES
kf_Contact_ID

CONTACTS
kp_Contact_ID

i imagine this is enough for you to understand my intention. How do I
handle this?

Thanks
Let me see if I understand. You want a user to able to create a new
Invoice and select a Contact record to relate to it. The choice of
Contact should be limited to those Contacts labelled "Customers". Is
that correct?

If so, and you're using FM7+ (you don't say), you're looking for a
filtered value list. You want a list of values of NameCompany from
the Contacts table. So you need to make a new field in the Contacts
table that is a global calc with a text result = "Customer". Create a
self join (relate one Table Occurance of Contacts to another TO of
Contacts relating the ContactType field to the new global field. Then
create a value list that picks the key field from the new "child" (non-
global) TO starting from the parent/global TO. That will produce a
list of ids of the records marked "Customer".

Good luck.
G


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.