tyrollean9
New Member
- Joined
- Jan 11, 2016
- Messages
- 1
I am trying to set up a query for reporting purposes. I have a table with activity codes that has two fields [FieldA] and [FieldB] which are linked to one other table each that has rates associated with [FieldA] or [FieldB]. I ran a query by just pulling in the table with activity codes and it gave me the first activity code repeating an infinite amount of times....can you explain why?
Then I brought in the other two tables associated with [FieldA] and [FieldB] and added the rates field associated with each into the query design fields. When i ran the query now it provided me only those activity codes that had [FieldA] and [FieldB] populated.
My goal is to have all activity codes display in the query results whether they have [FieldA] populated or [FieldB] populated. If they are populated the query will bring in the associated rate. If they aren't the query will bring in a blank under rate. The activity codes table should not require that [FieldA] or [FieldB] be populated.
My guess as to why only results with both fields being populated is because of blanks vs. null values.
Thanks.
Then I brought in the other two tables associated with [FieldA] and [FieldB] and added the rates field associated with each into the query design fields. When i ran the query now it provided me only those activity codes that had [FieldA] and [FieldB] populated.
My goal is to have all activity codes display in the query results whether they have [FieldA] populated or [FieldB] populated. If they are populated the query will bring in the associated rate. If they aren't the query will bring in a blank under rate. The activity codes table should not require that [FieldA] or [FieldB] be populated.
My guess as to why only results with both fields being populated is because of blanks vs. null values.
Thanks.