Hello All,
I'm trying to create a neighborhood directory that will show both spouses' phone numbers. The report is based on nested queries. My tables have a one to many (12M) relationship: Address (pk=AddressID)-->People (pk=PeopleID)-->Phone (pk=PhoneID)
In the Directory, my goal is to have the spouses' names on one line along with their address and the phone numbers show up in the detail section of the report.
There is an underlying query that combines the names of the husband and wife in one record (field: Name). When this happens the PeopleID of the wife is lost so her phone number no longer associates with her record. The husband doesn't lose his phone numbers since his PeopleID is still associated with him. If I don't combine their names, spouses will be on two lines in the directory. To keep the wife's data, I still have FirstName and LastName fields.
In my report, I've tried grouping on Name, the husband and wife show (Jones & Smith-Jones, Roger & Clara), but then the wife (Smith-Jones, Clara) shows up again with her phone numbers. My first thought was to use the "hide duplicates" of the report, but since the wife's name isn't combined she's not a duplicate.
In my tables I have a Relationships table. PKRelationship 1 = husband and PKRelationship 2 = wife Is there a way to combine my lines in the report and mask the wife's name so her phone number will show up in the correct detail area?
Any suggestions?
Thanks,
painterZ
I'm trying to create a neighborhood directory that will show both spouses' phone numbers. The report is based on nested queries. My tables have a one to many (12M) relationship: Address (pk=AddressID)-->People (pk=PeopleID)-->Phone (pk=PhoneID)
In the Directory, my goal is to have the spouses' names on one line along with their address and the phone numbers show up in the detail section of the report.
There is an underlying query that combines the names of the husband and wife in one record (field: Name). When this happens the PeopleID of the wife is lost so her phone number no longer associates with her record. The husband doesn't lose his phone numbers since his PeopleID is still associated with him. If I don't combine their names, spouses will be on two lines in the directory. To keep the wife's data, I still have FirstName and LastName fields.
In my report, I've tried grouping on Name, the husband and wife show (Jones & Smith-Jones, Roger & Clara), but then the wife (Smith-Jones, Clara) shows up again with her phone numbers. My first thought was to use the "hide duplicates" of the report, but since the wife's name isn't combined she's not a duplicate.
In my tables I have a Relationships table. PKRelationship 1 = husband and PKRelationship 2 = wife Is there a way to combine my lines in the report and mask the wife's name so her phone number will show up in the correct detail area?
Any suggestions?
Thanks,
painterZ