Senin, 29 Juni 2015

RE: [MS_AccessPros] syntax help

 

The price you pay for have spaces in object names. I'll leave it up to you to find where ;-)
 
Duane Hookom, MVP
MS Access
 

To: MS_Access_Professionals@yahoogroups.com
From: MS_Access_Professionals@yahoogroups.com
Date: Mon, 29 Jun 2015 14:21:01 -0700
Subject: RE: [MS_AccessPros] syntax help



Ok I must be a ditz I actually copied the earlier query and used it in another query, but changed the name of the table used and I got an error. I have tried everything to find the error, so at this point I give up.
Ideas anyone??


SELECT Colon_Referrals_10 yrs.*
FROM Colon_Referrals_10 yrs INNER JOIN (SELECT person_id, MAX(modify_timestamp) AS TimeMatch
FROM Colon_Referrals_10 yrs GROUP BY person_id)  AS MaxRecord ON (Colon_Referrals_10 yrs.person_id = MaxRecord.person_id) AND (Colon_Referrals_10 yrs.modify_timestamp = MaxRecord.TimeMatch);




the error says I have a missing operator  do not see anything missing. But who knows another set of eyes might help find it
Thank you so much
Patty







---In MS_Access_Professionals@yahoogroups.com, <DEmbrey@...> wrote :

That should be: GROUP BY person_id not GROUP BY person.id

 

 

 

 

Darrell

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Monday, June 29, 2015 11:52 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: RE: [MS_AccessPros] syntax help

 

 

Thank you Darrell,
That fixed that part now, for whatever reason I am getting another error. "your query does not include the specified expression "person.id' as part of an aggregate function"
 
 
SELECT  wo_master_IM3_filter_PE.*
FROM wo_master_IM3_filter_PE INNER JOIN (SELECT person_id, MAX(modify_timestamp) AS TimeMatch FROM wo_master_IM3_filter_PE GROUP BY person.id) AS MaxRecord ON (wo_master_IM3_filter_PE.modify_timestamp=MaxRecord.TimeMatch) AND (wo_master_IM3_filter_PE.person_id = MaxRecord.person_id);
 
Needless to say I am at a loss.
Appreciate the support and help
thank you
Patty



---In MS_Access_Professionals@yahoogroups.com, <DEmbrey@...> wrote :

You need to place a period between MaxRecord and TimeMatch in the following:

(wo_master_IM3_filter_PE.modify_timestamp=MaxRecord TimeMatch)

 

It should be: (wo_master_IM3_filter_PE.modify_timestamp=MaxRecord.TimeMatch)

 

 

 

Darrell

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Monday, June 29, 2015 11:29 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] syntax help

 

 

this query is coming back with a syntax error message it pops to the first FROM section and highlights the IM3 part.  Error message though say: Syntax error (missing operator) in query expression 'wo_master_IM3_filter_PE.modify_timestamp=MaxRecord TimeMatch'
 
SELECT  wo_master_IM3_filter_PE.*
FROM  wo_master_IM3_filter_PE INNER JOIN (SELECT person_id, MAX(modify_timestamp) AS TimeMatch FROM wo_master_IM3_filter_PE GROUP BY person.id) AS MaxRecord ON (wo_master_IM3_filter_PE.modify_timestamp=MaxRecord TimeMatch) AND wo_master_IM3_filter_PE.person_id = MaxRecord.person_id);
 
 
I just do not see what is wrong with it, I know it must be something simple that I am missing.
thank you for your help.
Patty

 

The information contained in this communication is highly confidential and is intended solely for the use of the individual(s) to whom this communication is directed. If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information is prohibited. Please notify the sender, by electronic mail or telephone, of any unintended receipt and delete the original message without making any copies.
Blue Cross Blue Shield of Michigan and Blue Care Network of Michigan are nonprofit corporations and independent licensees of the Blue Cross and Blue Shield Association.


The information contained in this communication is highly confidential and is intended solely for the use of the individual(s) to whom this communication is directed. If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information is prohibited. Please notify the sender, by electronic mail or telephone, of any unintended receipt and delete the original message without making any copies.
Blue Cross Blue Shield of Michigan and Blue Care Network of Michigan are nonprofit corporations and independent licensees of the Blue Cross and Blue Shield Association.


__._,_.___

Posted by: Duane Hookom <duanehookom@hotmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (7)

.

__,_._,___

Tidak ada komentar:

Posting Komentar