PC Review


Reply
Thread Tools Rate Thread

aggregation problem

 
 
thread
Guest
Posts: n/a
 
      24th Jun 2006
hi all,
im trying to put data with recordset from a query and im gettinhg the
aggregation error,
how can i take the data for 1 single culomn and not get the aggregation
error

 
Reply With Quote
 
 
 
 
Wolfgang Kais
Guest
Posts: n/a
 
      24th Jun 2006
Hi "thread".

"thread" wrote:
> hi all,
> im trying to put data with recordset from a query and im getting
> the aggregation error, how can i take the data for 1 single culomn
> and not get the aggregation error


Sorry, what are you trying to do?
Do you mean selecting a column from a table?
Do you want to sum the values?
I am not a native english speaker and I do not understand what you did.
Maybe you can try to tell us what exactly you did.

--
Regards,
Wolfgang


 
Reply With Quote
 
thread
Guest
Posts: n/a
 
      25th Jun 2006
hi,
i'm trying to open via recordset a query:
rcd.Open "<query's name>", cn, adOpenDynamic, adLockOptimistic,
adCmdTable
and this is what i got in respond:
"<one of the culomns function>...is not part of aggregation
function...."
it seems like i cannot play with the data is the query when its group
by or as an expression,the only solution i found is to add another
culomn to use the data from the query and not with vba code

Wolfgang Kais wrote:
> Hi "thread".
>
> "thread" wrote:
> > hi all,
> > im trying to put data with recordset from a query and im getting
> > the aggregation error, how can i take the data for 1 single culomn
> > and not get the aggregation error

>
> Sorry, what are you trying to do?
> Do you mean selecting a column from a table?
> Do you want to sum the values?
> I am not a native english speaker and I do not understand what you did.
> Maybe you can try to tell us what exactly you did.
>
> --
> Regards,
> Wolfgang


 
Reply With Quote
 
Terry Kreft
Guest
Posts: n/a
 
      25th Jun 2006
If you have a calculated field or if you Group By then no you cannot alter
the data in the recordset.

Think about it or a minute, the query engine expects that the recordset is
tied to the data in the table(s), if the data you extract is summarised in
any way then the query engine can not know which columns to update hence it
makes the recordset read only.


--

Terry Kreft


"thread" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hi,
> i'm trying to open via recordset a query:
> rcd.Open "<query's name>", cn, adOpenDynamic, adLockOptimistic,
> adCmdTable
> and this is what i got in respond:
> "<one of the culomns function>...is not part of aggregation
> function...."
> it seems like i cannot play with the data is the query when its group
> by or as an expression,the only solution i found is to add another
> culomn to use the data from the query and not with vba code
>
> Wolfgang Kais wrote:
> > Hi "thread".
> >
> > "thread" wrote:
> > > hi all,
> > > im trying to put data with recordset from a query and im getting
> > > the aggregation error, how can i take the data for 1 single culomn
> > > and not get the aggregation error

> >
> > Sorry, what are you trying to do?
> > Do you mean selecting a column from a table?
> > Do you want to sum the values?
> > I am not a native english speaker and I do not understand what you did.
> > Maybe you can try to tell us what exactly you did.
> >
> > --
> > Regards,
> > Wolfgang

>



 
Reply With Quote
 
Wolfgang Kais
Guest
Posts: n/a
 
      25th Jun 2006
Hello "thread".

"thread" wrote:
>>> hi all,
>>> im trying to put data with recordset from a query and im getting
>>> the aggregation error, how can i take the data for 1 single
>>> culomn and not get the aggregation error


>> Sorry, what are you trying to do?
>> Do you mean selecting a column from a table?
>> Do you want to sum the values?
>> I am not a native english speaker and I do not understand what you
>> did. Maybe you can try to tell us what exactly you did.


> i'm trying to open via recordset a query:
> rcd.Open "<query's name>", cn, adOpenDynamic, adLockOptimistic,
> adCmdTable
> and this is what i got in respond:
> "<one of the culomns function>...is not part of aggregation
> function...."
> it seems like i cannot play with the data is the query when its group
> by or as an expression,the only solution i found is to add another
> culomn to use the data from the query and not with vba code


I see... not. You better post the SQL of <query's name>.
The message states that you use a query with a group by clause that
uses a source column that is neither part of an aggregate function nor
part of the group by clause. This is formidden.
Send the SQL and we can tell you more about a solution.

--
Regards,
Wolfgang


 
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
Query Aggregation Problem Geoff Microsoft Access Queries 2 23rd Dec 2008 02:21 PM
OO Aggregation! Jeff Microsoft C# .NET 6 27th Nov 2006 06:03 PM
Aggregation in C# =?Utf-8?B?QnJ1Y2UgT25l?= Microsoft Dot NET 7 4th Sep 2006 11:36 PM
Aggregation Nice Chap Microsoft C# .NET 1 12th Jan 2004 12:03 PM
COM Aggregation in VB.NET Mike Hamsa Microsoft VB .NET 2 22nd Oct 2003 02:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:56 AM.