![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi folks, I'm having a serious problem grasping how Filemaker deals with Finds in related fields and portals. I've searched a bit in the NG and not found a solution. I'm using FM 7 and have a situation as follows: Contacts table Fields: ContactID, name & address fields, CurrentEvent (Global) EventAttendance table Fields: ContactID, EventID, CameToEvent (yes/no) Events table Fields: EventID, EventName ...basically the database tracks names & addresses of people who came to different events. Each event has its own EventID, and the EventAttendance table links people to events. I have two relationships set up from the Contacts table to the EventAttendance table. One is called CurrentEvent. It links ContactID = ContactID and CurrentEvent = EventID. The other is called NotCurrentEvent. It links ContactID = ContactID and CurrentEvent <> EventID. When I put the related field CurrentEvent::CameToEvent on my main layout (which uses the Contacts table) it displays perfectly. It shows the CameToEvent value in the EventAttendance table only for the current event. When I enter data in that box, Filemaker creates a related record in the EventAttendance table with the correct EventID. The user doesn't even know he/she is entering data in a related table. This is all great. The problem: When I try to perform a Find using that field, it finds ALL people who have a value in CameToEvent, including people who came to past events but not the current one. In other words Filemaker does not seem to care what relationship I am using, it just does the find on the table itself. Suddenly the illusion of "I'm in one table" is broken and the user has no idea why people are showing up who shouldn't. |
![]() |
| Thread Tools | |
| Display Modes | |
| |