Hello all,
I'm using Access 2007 and am stuck with a Union Query. For a bit of background, I have two tables with cell phone billing information. The first table lists information about the users, such as name, number, department, etc... The second is a downloaded list of charges for the month by number, but it doesn't have the names. So, I've linked the number fields from both tables so I can easily run a query to match the user names contained in my first table with the wireless numbers and charges in the second.
That works fine, but when I download an invoice that has charges or credits for numbers that are no longer in my user table (maybe changed, terminated, etc.), they do not show up in a simple query since there is no relation in the first table. So I made an unmatched query and can get those records easily. That works fine too. My problem now is, when I create a Union query to get all of those records together, I can either get them all with no names, or get only the ones from my first query if I make the user names show up again. How can I get all of these records to show up in one query/report with user names for the ones that have one, and whatever else for the others??
Am I going about this wrong? Is there something more efficient than a Union query? Oh, and my user list can't include those other numbers; it is updated constantly to be current.
I'm using Access 2007 and am stuck with a Union Query. For a bit of background, I have two tables with cell phone billing information. The first table lists information about the users, such as name, number, department, etc... The second is a downloaded list of charges for the month by number, but it doesn't have the names. So, I've linked the number fields from both tables so I can easily run a query to match the user names contained in my first table with the wireless numbers and charges in the second.
That works fine, but when I download an invoice that has charges or credits for numbers that are no longer in my user table (maybe changed, terminated, etc.), they do not show up in a simple query since there is no relation in the first table. So I made an unmatched query and can get those records easily. That works fine too. My problem now is, when I create a Union query to get all of those records together, I can either get them all with no names, or get only the ones from my first query if I make the user names show up again. How can I get all of these records to show up in one query/report with user names for the ones that have one, and whatever else for the others??
Am I going about this wrong? Is there something more efficient than a Union query? Oh, and my user list can't include those other numbers; it is updated constantly to be current.