Group:  Microsoft Access ยป microsoft.public.access.gettingstarted
Thread: Help with Multiple record - one client

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Help with Multiple record - one client
Novice2000 28.09.2006 16:58:02
Hi,

We receive an excel workbook of information from an outside source. Within
this table the customer may have several record lines assigned to their
customer number. Each line has the customer number, a purchase date, a part
number, description and cost.

Example:
10222 07/10/2006 carbide burr 3/8 inch $234.00
10222 08/17/2006 widget 1 inch $456.00
10222 09/22/2006 o-ring 1/2 inch $123.00

I need to be able to pull back all of this data into a report and display
the data for each record on one page. How can I design a query to pull back
multiple records?

Re: Help with Multiple record - one client
"Jeff Boyce" <nonsense[ at ]nonsense.com> 28.09.2006 17:34:07
SELECT * FROM YourTable WHERE CustomerID = 10222;

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Novice2000" <Novice2000[ at ]discussions.microsoft.com> wrote in message
news:B1503A7F-54D4-4842-9D37-C5C8EEB0272B[ at ]microsoft.com...
[Quoted Text]
> Hi,
>
> We receive an excel workbook of information from an outside source. Within
> this table the customer may have several record lines assigned to their
> customer number. Each line has the customer number, a purchase date, a
> part
> number, description and cost.
>
> Example:
> 10222 07/10/2006 carbide burr 3/8 inch $234.00
> 10222 08/17/2006 widget 1 inch $456.00
> 10222 09/22/2006 o-ring 1/2 inch $123.00
>
> I need to be able to pull back all of this data into a report and display
> the data for each record on one page. How can I design a query to pull
> back
> multiple records?
>


Re: Help with Multiple record - one client
Novice2000 28.09.2006 17:57:01
Thanks Jeff

Yes, that is good, but that only brings back that one client. Is there a
generic customer ID that can be substituted for 10222 that will bring back
all clients with their individual data in the report format?.

"Jeff Boyce" wrote:

[Quoted Text]
> SELECT * FROM YourTable WHERE CustomerID = 10222;
>
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
>
> "Novice2000" <Novice2000[ at ]discussions.microsoft.com> wrote in message
> news:B1503A7F-54D4-4842-9D37-C5C8EEB0272B[ at ]microsoft.com...
> > Hi,
> >
> > We receive an excel workbook of information from an outside source. Within
> > this table the customer may have several record lines assigned to their
> > customer number. Each line has the customer number, a purchase date, a
> > part
> > number, description and cost.
> >
> > Example:
> > 10222 07/10/2006 carbide burr 3/8 inch $234.00
> > 10222 08/17/2006 widget 1 inch $456.00
> > 10222 09/22/2006 o-ring 1/2 inch $123.00
> >
> > I need to be able to pull back all of this data into a report and display
> > the data for each record on one page. How can I design a query to pull
> > back
> > multiple records?
> >
>
>
>
Re: Help with Multiple record - one client
"Jeff Boyce" <nonsense[ at ]nonsense.com> 28.09.2006 19:24:42
Queries are not reports. Queries provide the raw data for reports.

If you don't want to limit it to the one CustomerID, don't include a WHERE
clause.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Novice2000" <Novice2000[ at ]discussions.microsoft.com> wrote in message
news:34D57E92-D440-4492-B2AC-91EE09E15AEA[ at ]microsoft.com...
[Quoted Text]
> Thanks Jeff
>
> Yes, that is good, but that only brings back that one client. Is there a
> generic customer ID that can be substituted for 10222 that will bring back
> all clients with their individual data in the report format?.
>
> "Jeff Boyce" wrote:
>
>> SELECT * FROM YourTable WHERE CustomerID = 10222;
>>
>> Regards
>>
>> Jeff Boyce
>> Microsoft Office/Access MVP
>>
>> "Novice2000" <Novice2000[ at ]discussions.microsoft.com> wrote in message
>> news:B1503A7F-54D4-4842-9D37-C5C8EEB0272B[ at ]microsoft.com...
>> > Hi,
>> >
>> > We receive an excel workbook of information from an outside source.
>> > Within
>> > this table the customer may have several record lines assigned to their
>> > customer number. Each line has the customer number, a purchase date, a
>> > part
>> > number, description and cost.
>> >
>> > Example:
>> > 10222 07/10/2006 carbide burr 3/8 inch $234.00
>> > 10222 08/17/2006 widget 1 inch $456.00
>> > 10222 09/22/2006 o-ring 1/2 inch $123.00
>> >
>> > I need to be able to pull back all of this data into a report and
>> > display
>> > the data for each record on one page. How can I design a query to pull
>> > back
>> > multiple records?
>> >
>>
>>
>>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net