|
|
ADVISOR ANSWERS
Do Complex FileMaker Pro Finds Using Related Data
UNLOCKED -- This article is provided to subscribers of FILEMAKER ADVISOR or DATABASED ADVISOR or FILEMAKER ADVISOR. To subscribe or renew, go to Advisor Store.
Q: I have a database that details the service history for our customers. They can have a variety of services performed, but they all reside in the service history table. Different fields are used depending on the service, so I have different fields for the screening date, evaluation date, referral date, and so on. Each of these date fields are filled out in multiple related records, one for evaluation, one for referral, etc. I have a search layout that uses all these fields as related fields, and it works fine if I only search one date. But if I search for a screening date and an evaluation date, I get no records found when I should find some. Do you know what's going on here, and how I can fix it?
A: Your problem stems from FileMaker Pro thinking you're searching for a record where both dates are filled in on the same portal row, when in fact those dates are filled in on different portal rows. Having the fields on your layout as related fields is the same as having them in a one-row portal. In your question you mention three related record types: screening, evaluation, and referral. As long as you have a relatively small number of related record types, a simple solution is to create duplicate relationships. In your relationships graph you have a relationship from Client to Service History. Because your search layout is based on the Client table occurrence, you'll have to duplicate the Service History table occurrence twice. Add relationships from Client to these new table occurrences so you have as many relationships as you have Service History record types.
On your search layout, re-specify your date fields (and any other fields unique to a specific service history type) so the screening date, evaluation date, and referral date all use different relationships. Now when you perform a search, you'll be able to successfully find clients that have search criteria in multiple related service history records.
Chris Moyer is president and CEO of The Moyer Group, a FileMaker Pro consulting and training firm with offices in Atlanta, Chicago, and San Francisco. Chris is a technical editor of FileMaker Advisor Magazine.
Bob Bowers is CEO of Soliant Consulting, and co-author of three books on FileMaker Pro, including Special Edition Using FileMaker Pro 7. Bob is one of a handful of trainers authorized to teach the FileMaker Professional Foundation Training Series. Bob has been a speaker at several FileMaker Developer Conferences, and was awarded the FileMaker Fellowship Award in 2002.
Keyword Tags: FileMaker, FileMaker Development, FileMaker FileMaker Pro
ADVISORAMA If I save time, when do I get it back?
|
ARTICLE INFO
Web Edition: 2008 Week 19, Doc #19456
ARTICLE LOCKED
|
FileMaker Advisor Sponsors
|

Read the advanced guide to creating custom business database solutions with FileMaker software. Subscribe now to gain access to all the archives and downloads.![]() 
Learn the fundamentals of using FileMaker Pro software. Every issue gives you step-by-step instructions on creating the databases you need. Subscribe now!![]()  ![]()
![]()

See exactly how to do it, step-by-step, in Advisor Academy CDs created by the top experts. Click to see what you can learn right now.![]() 
Keep up! Hot News, How-To, Tips & Tricks, Expert Advice, and more. Click to request your's free.![]()  ![]()

What direction are you going with your business? Advisor Guides are packed with the answers you need to work smarter. Can you afford to fall behind?![]() 
Submit your tips, techniques and advice and let Advisor promote your business and build your career. Show the world what you know!![]()  ![]()
|
|