I've done my research, spent hours on tutorials but couldn't find an easy to understand way to create what I need.
I'm new to Access but so eager to learn. I do tons of reports on Excel but tired of how slow it can be when too much data on my data sheet. So I shifted to Access.
I have 3 Excel files with one table in each.
1° 1st excel table has a list of campaign name and tracking codes that goes with it.
"Campaign-TrackCode"(exported from a software)
ex:
Country Campaign name Track Code
US Campaign name 1 us-ad-1-1
US Campaign name 1 us-ad-2-1
US Campaign name 2 us-ad-1-2
US Campaign name 2 us-ad-2-2
US Campaign name 2 us-ad-3-2
etc...
2° 2nd excel table has dates; registration ID and from which tracking code "Registrations"(exported from a software)
ex:
Date Reg ID Track Code
01.01.2013 1021 us-ad-1-1
01.01.2013 1022 us-ad-1-1
01.01.2013 1023 us-ad-1-2
01.02.2013 1024 us-ad-4-2
01.02.2013 1025 us-ad-2-1
etc...
3° 3rd excel table is a report with dates, number of clicks, campaign name. "ggle Report"(exported from a ggle ads)
ex:
Date Campaign name Clicks
01.01.2013 Campaign name 1 12
01.01.2013 Campaign name 1 46
01.01.2013 Campaign name 2 16
01.02.2013 Campaign name 2 35
01.02.2013 Campaign name 2 23
etc...
And I'm trying to merge my 2nd and 3rd table together via the 1st one to get a table like this in Access:
Date Country Campaign name Count RegID Clicks
01.01.2013 US Campaign name 1 21 12
01.01.2013 US Campaign name 2 23 35
01.02.2013 US Campaign name 1 22 46
etc...
I'm not sure what to do. I've tried the table analyzer to split my 1st table into 3 tables (countries, campaign name and track code) then connect it to my second table via track code, then the 1st table connected to the 3rd table via campaigns and then finaly use the 1st table to connect the 2nd and the 3rd.
doesn't work. Since I'm a newbee, it would be great to have a step by step to create that final table. I'm a bit lost with primary keys, and unique values. (I'm starting to get one to many relationship so I think I'm on the right path to learn). I would like not to change my excel tables since the import in access each day is almost fully automated. I download the 3 reports and then in access I append my already imported tables according to the already saved rules to import those excel files.
Would someone know how to do this?
Here is a link with examples of the tables and the output needed:
At first, it looked like what I needed.
The SQL query did the right connections :
Table 2 Table 1 Table 3
– JD76 Jan 27 '13 at 17:24
here it goes:
The SQL query did the connections
table 2 was connected to table 1 via the column Track Code and Table 3 was connected to table 1 via Campaign name.
I had the right columns in the table but the dates, Campaign names, track codes, Reg ID and Clicks were not matching. But values seemed almost random.
– JD76 Jan 27 '13 at 17:47
– JD76 Jan 27 '13 at 18:16
In my table from ggle ads (Table 3), I have dates, campaign names, Clicks and how much was spent.
In my table from our system (Table 2), I have Dates, Registration IDs and the tracking code of the link they used to register which belong to a campaign.
In my table 1, I have the tracking codes of each campaign. it's a list of campaign and 2 to 5 tracking codes for each campaign.
– JD76 Jan 27 '13 at 18:16
That way I know how much I've spent on a campaign and how many registration I got that day from that campaign. Which allows me to calcuate the CPA.
That's why I was trying to connect my ggle ads table (table 3) to my system table (Table 2) via the table 1 which is the list of campaign and their tracking codes.
– JD76 Jan 27 '13 at 18:18