473,662 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2003 Create report from two data sets

6 New Member
I have a table which is a list of clients that we are sending to another company to contact for updating their account. I have a second table that is the other company's report back to me telling which of those clients they reached, what the outcome of that contact is, whether additional product was sold, etc. I would like to create a report which merges the records so I can see how many leads I outsources, how many contacts and sales were made and any other information they send me such as whether the client has a complaint that needs to be referred to my CSRs. I also want to know how many leads I gave on a certain date. Can anyone help? This is a project that was due last week but all my study and attempts have led me only to frustration. There are common pieces of information in both tables ie clients names, accountID ( I set this as the primary key in both tables), sales group and phone numbers. Each of the tables has a few fields not in the other table.
Apr 30 '07 #1
8 2003
MMcCarthy
14,534 Recognized Expert Moderator MVP
You need to get the query right. Consider your first table as the master table and link the two tables based on AccountID as follows. You can include fields from both tables.
Expand|Select|Wrap|Line Numbers
  1. SELECT t1.AccountID, t1.ClientName, t2.Field1, t2.Field2
  2. FROM Table1 As t1 LEFT JOIN Table2 As t2
  3. ON t1.AccountID = t2.AccountID
  4.  
Mary
Apr 30 '07 #2
sesmap
6 New Member
Thanks for your help Mary but I am still stuck. I guess I didn't give you enough information. Each of these reports comes to me daily. They are Excel documents. I have linked each one into access but I am unable to pull all of each set of reports into one table. Do I have to append each one into a single table for each group?
Apr 30 '07 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
Forget the report for the moment. You have to look at this as a query first. If the query is right the report will be easy. If you provide the metadata of the two tables (It might be a good idea to import rather than link to excel) and details of exactly what you want in the output I will try to help further.

Here is an example of how to post table MetaData :
Table Name=tblBooking s
Expand|Select|Wrap|Line Numbers
  1. Field; Type; IndexInfo
  2. Field; Type; IndexInfo
  3. StudentID; Autonumber; PK
  4. Family; String; FK
  5. Name; String
  6. University; String; FK
  7. Mark; Numeric
  8. LastAttendance; Date/Time
Apr 30 '07 #4
sesmap
6 New Member
Here is a query that has just the Master Table

SELECT [MASTER EOG].ACCOUNTID, [MASTER EOG].PUBCODE, [MASTER EOG].NAME, [MASTER EOG].PIATYPE, [MASTER EOG].FOD, [MASTER EOG].SUBSLNGTH, [MASTER EOG].RATECODE, [MASTER EOG].CURRENTBAL, [MASTER EOG].EOGDATE, [MASTER EOG].TELEPHONE, [MASTER EOG].ASSIGNDATE
FROM [MASTER EOG];

Here is the query that has the other table - CLC Reports

SELECT [CLC REPORTS].AccountID, [CLC REPORTS].Name, [CLC REPORTS].PubCode, [CLC REPORTS].Telephone, [CLC REPORTS].RateCode, [CLC REPORTS].EOGDate, [CLC REPORTS].CallType, [CLC REPORTS].Result1, [CLC REPORTS].Result2, [CLC REPORTS].Comment, [CLC REPORTS].CCType, [CLC REPORTS].CCNbr, [CLC REPORTS].CCName, [CLC REPORTS].CCExpire, [CLC REPORTS].CCAmount, [CLC REPORTS].BankName, [CLC REPORTS].BankNumber, [CLC REPORTS].AccountNumber, [CLC REPORTS].CheckNumber, [CLC REPORTS].BankAmount, [CLC REPORTS].REPORTDATE
FROM [CLC REPORTS];

I appended all the excel reports into two separate tables Master EOG and CLC Reports. Then, just to make sure they would work, I pulled each table into a query. I am not certain how I put the code into a new query. This is all very new to me and I appreciate your patience. Pat
Apr 30 '07 #5
MMcCarthy
14,534 Recognized Expert Moderator MVP
Try running this query
Expand|Select|Wrap|Line Numbers
  1. SELECT [MASTER EOG].ACCOUNTID, [MASTER EOG].PUBCODE, [MASTER EOG].NAME, 
  2. [MASTER EOG].PIATYPE, [MASTER EOG].FOD, [MASTER EOG].SUBSLNGTH, 
  3. [MASTER EOG].RATECODE, [MASTER EOG].CURRENTBAL, [MASTER EOG].EOGDATE, 
  4. [MASTER EOG].TELEPHONE, [MASTER EOG].ASSIGNDATE, [CLC REPORTS].AccountID, 
  5. [CLC REPORTS].Name, [CLC REPORTS].PubCode, [CLC REPORTS].Telephone, 
  6. [CLC REPORTS].RateCode, [CLC REPORTS].EOGDate, [CLC REPORTS].CallType, 
  7. [CLC REPORTS].Result1, [CLC REPORTS].Result2, [CLC REPORTS].Comment, 
  8. [CLC REPORTS].CCType, [CLC REPORTS].CCNbr, [CLC REPORTS].CCName, 
  9. [CLC REPORTS].CCExpire, [CLC REPORTS].CCAmount, [CLC REPORTS].BankName, 
  10. [CLC REPORTS].BankNumber, [CLC REPORTS].AccountNumber, [CLC REPORTS].CheckNumber, [CLC REPORTS].BankAmount, [CLC REPORTS].REPORTDATE
  11. FROM [MASTER EOG] LEFT JOIN [CLC REPORTS]
  12. ON [MASTER EOG].ACCOUNTID=[CLC REPORTS].ACCOUNTID;
  13.  
Mary
Apr 30 '07 #6
sesmap
6 New Member
It gives me the error: "Type mismatch in expression."
Apr 30 '07 #7
sesmap
6 New Member
I figured out the error, one Account ID was text, the other number. I changed them both to text and it worked! Thank you, thank you, thank you.
Apr 30 '07 #8
MMcCarthy
14,534 Recognized Expert Moderator MVP
I figured out the error, one Account ID was text, the other number. I changed them both to text and it worked! Thank you, thank you, thank you.
You're welcome.
Apr 30 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1693
by: Themis Papassilekas | last post by:
So, I don't know how tricky this is, but thought I'd ask... Here in the office there's an inventory db that was written in Access 2.0. Nobody cared to upgrade it since its creation back in an era long gone -only additions were made that make the SQL code look VERY chaotic -at least to me, and I'm not exactly a connoisseur anyway. Anyhow, I was wondering if there's an easy way to: a. make it run under some newer version and
7
8850
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
11
6586
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
20
3322
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to speed. I like books with practical exercises, and also with test questions (like cert books) *2*
1
3332
by: com | last post by:
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ... www.soft30.com/download-1-11975.htm - 31k - Cached - Similar pages MDBSecure 1.0.8.0 - Soft30.com Utility which makes it easy to create secure MS Access Databases, ... MS Access 2000/2003 format. 30 day money back guarantee, 30 day trial. ...
52
9955
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access 2003, not 2002, even if Office is kept at 2002. We are also looking to do a fair amount of...
1
5156
by: Brad | last post by:
Thanks for taking the time to read my question. I have a table of data that has Date, Data and Category. I need to show, in a report, each Categories Data by Date. The Date has to be it's own column across the top and Category down the left side. As data is entered, the number of unique dates increases. As a result the
17
4403
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting there, but is there a way they can find out if that application was put there from a CD or email or created at work? Hint: It's not on a client/server database, just native jet database mdb created on Access 2003 (default 2000)...
16
11062
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might know one way or the other whether that was true or not, or could point me to an article or help text that would. What I have seen so far online and in Access 2007 help seems to confirm the above. But that (or at least (b)) seems incredible that it...
0
8343
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8856
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8762
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.