PC Review


Reply
Thread Tools Rate Thread

Display multiple query records in one row

 
 
=?Utf-8?B?Q2FybA==?=
Guest
Posts: n/a
 
      29th Mar 2007
I am trying to write a query that will return one row of data even though
there are multiple records.

For Example. If I want to search for all accounts created in last month.

Table

Name DOB AC Create Account type Account Number
Joe Bloggs 12.06.83 15.02.07 Current 12345678
Joe Bloggs 12.06.83 01.03.07 Saving 87654321
Joe Bloggs 12.06.58 10.03.07 Deposit 13572468
Jane Doe 16.02.58 17.02.07 Current 13578642
Jane Doe 16.02.58 17.02.07 Saving 86421357

I would like to create a simple query to get the results as

Name DOB Current No Saving No Deposit No
Joe Bloggs 12.06.83 12345678 87654321 13572468
Jane Doe 16.02.58 13578642 86421357

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SGVhdGhlcg==?=
Guest
Posts: n/a
 
      29th Mar 2007
I'd suggest using a crosstab query. There is a wizard in access that will
guide you through it. Assuming you don't have more than one checking or
savings or account type...

In design view
field Total Crosstab
customer Group By row heading
account type Group by column heading
account number First Value

You'd have to make sure that there aren't any customers with more that one
of each type of account though--this will omit those as it's only choosing
the first of each type..


"Carl" wrote:

> I am trying to write a query that will return one row of data even though
> there are multiple records.
>
> For Example. If I want to search for all accounts created in last month.
>
> Table
>
> Name DOB AC Create Account type Account Number
> Joe Bloggs 12.06.83 15.02.07 Current 12345678
> Joe Bloggs 12.06.83 01.03.07 Saving 87654321
> Joe Bloggs 12.06.58 10.03.07 Deposit 13572468
> Jane Doe 16.02.58 17.02.07 Current 13578642
> Jane Doe 16.02.58 17.02.07 Saving 86421357
>
> I would like to create a simple query to get the results as
>
> Name DOB Current No Saving No Deposit No
> Joe Bloggs 12.06.83 12345678 87654321 13572468
> Jane Doe 16.02.58 13578642 86421357
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple records in table to display single records Hurrikane4 Microsoft Access Queries 7 10th Dec 2009 06:34 PM
Looking for a way to make a Query or Find and Display multiple records using only part of field gdmoland@hotmail.com Microsoft Access Macros 1 19th Apr 2007 05:56 AM
Need Help - display multiple records Billie Microsoft Access Form Coding 2 11th Oct 2004 04:16 PM
Query combining multiple records from one table can't add records Clint Marshall Microsoft Access Queries 4 8th Jul 2004 01:25 PM
Creating multiple records in a make table Query OR Create Multiple lables Joe Microsoft Access Queries 5 15th Nov 2003 12:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:40 PM.