A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help with: ...query that does not include specified expression ....as part of an aggregate function...



 
 
Thread Tools Display Modes
  #1  
Old December 2nd, 2009, 05:06 PM posted to microsoft.public.access.queries
Need2Know
external usenet poster
 
Posts: 11
Default Help with: ...query that does not include specified expression ....as part of an aggregate function...

Good Afternoon,

I keep getting "You tried to execute a query that does not include the
specified expression '(Max([b].[AS OF DATE])) Between [a].[closedate]
And [a].[trade date]' as part of an aggregate function." when runnng
the query below. Any assistance offered is greatly appreciated.
Thank you.

UPDATE DISTINCTROW tbl_TXN_PortIncExp AS a LEFT JOIN tbl_HLD AS b ON
(a.[CUSIP OR LOAN #] = b.[CUSIP OR LOAN #]) AND (a.[PORTFOLIO CODE] =
b.[PORTFOLIO CODE])
SET a.XDate = (Max([b].[AS OF DATE])) Between [a].[closedate] And [a].
[trade date], a.TRANSTYPE = "Income"
WHERE (((a.TRANSTYPE)="portincome"));
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.