skea
Registered User.
- Local time
- Today, 19:02
- Joined
- Dec 21, 2004
- Messages
- 342
Attached is a sample of my db with tables,queries and a report.
The Problem is deep but i will try to explain.
Some of the contacts work in more than one field office implying that they work in either Work_District1 or Work_District1 or Work_District1 or two of them or three of them.(e.g Mr Joseph Oneka who works in Lira,Gulu and Pader as in the Contacts Table)
As in the image,Work_District1 and Work_District2 and Work_District3 are meant to have an inner join in the query(qryRepOrgsByDist) because they are connected but this can't be done with an inner join (inner joins are 1-1 and not 1-M).This gives me no results, so my ultimate goal here is bieng blown off.
My Test is with UN/FAO which is in 6 Field Offices and Contact(Joseph Oneka who works in Gulu,lira and Pader) and fieldoffice Districts Kitgum , Gulu and Pader.
What i want is that in my Report, if a field(Work_District1 or Work_District2 or Work_District3 ) is null, then the record of that section shouldnt appear.
I have tried to use the formattting i commented out in the code but it was failing.
As you see in query(qryRepOrgsByDist2) which is the Record source of my report, i have criteria (Like "* pader *" Or Like "*gulu*" Or Like "* kitgum *"), but the record of Joseph Oneka in Lira shows up.
Any help is highly appreciated.
The Problem is deep but i will try to explain.
Some of the contacts work in more than one field office implying that they work in either Work_District1 or Work_District1 or Work_District1 or two of them or three of them.(e.g Mr Joseph Oneka who works in Lira,Gulu and Pader as in the Contacts Table)
As in the image,Work_District1 and Work_District2 and Work_District3 are meant to have an inner join in the query(qryRepOrgsByDist) because they are connected but this can't be done with an inner join (inner joins are 1-1 and not 1-M).This gives me no results, so my ultimate goal here is bieng blown off.
My Test is with UN/FAO which is in 6 Field Offices and Contact(Joseph Oneka who works in Gulu,lira and Pader) and fieldoffice Districts Kitgum , Gulu and Pader.
What i want is that in my Report, if a field(Work_District1 or Work_District2 or Work_District3 ) is null, then the record of that section shouldnt appear.
I have tried to use the formattting i commented out in the code but it was failing.
As you see in query(qryRepOrgsByDist2) which is the Record source of my report, i have criteria (Like "* pader *" Or Like "*gulu*" Or Like "* kitgum *"), but the record of Joseph Oneka in Lira shows up.
Any help is highly appreciated.