purchased database problems

Charmed7

Registered User.
Local time
Yesterday, 22:55
Joined
Jul 23, 2004
Messages
53
This is sort of a general how to fix it question. I have a database that holds all of my companies information regarding policies.

For accounting reasons, they have seperated some policies and created an entire new database. So there is Company 01 and Company 02.

I have been asked to create some reports comparing the data in both Companies. So far I've been able to get quick reports out but merging the companies information into a table and running the report from there. The only thing I don't like about that is the information loses it's "Live" factor. It also seems like a amateur way of manipulating data.

An example (one I'm working on now) is my boss wants to know how many policies have been cancelled by our clients and compare them between the two companies. I can get a Count for Company 01 and a Count for Company 02. But when I compare them in a third query, I only show where clients cancelled in both Company 01 and Company 02. I need to show all the clients and 01 and 02. I'm ok with the field showing up blank or Null.

If someone can help with that immediate problem that would be great. But I'm also looking for some insight on how to have these two tables work better together. If I had created the program, I would have had both companies in one database, and just have an ID for Company 01 and Company 02.

Does it seem right to just set up a Make Table query and make some macros to keep it updated? I would have to append one table to the other. And I would have to do this as much as on an hourly basis if my bosses want up to date information.

Can I just say....Grrrrr? Thanks for listening.
 
You could join the two tables in a union query and add the company ID to it

Code:
select  * , "Co1" as [CoID]  from [Company 1 Data]
UNION 
select *  , "Co2" as [CoID] from [Company 2 Data];

HTH

Peter
 

Users who are viewing this thread

Back
Top Bottom