Simple Rank Expression Error

  • Thread starter DeVonn via AccessMonster.com
  • Start date
D

DeVonn via AccessMonster.com

The expression below keeps giving me a error messege "Reserved Error (-3025)
There is no message for this error"

Does any one have any suggestions.

SELECT Qry_weekly_Comparasion.date, Qry_weekly_Comparasion.day, (SELECT Count
(*) FROM Qry_weekly_Comparasion AS TMP WHERE
TMP.Date > Qry_weekly_Comparasion.Date AND TMP.Day = Qry_weekly_Comparasion.
Day)+1 AS Week;
 
S

Sylvain Lafontaine

Using date and day as field names could lead to some confusion with reserved
word in Access. Try replacing them or put them between []:

SELECT Qry_weekly_Comparasion.[date] as DateWeekly ...

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)
 
D

DeVonn via AccessMonster.com

Got it thanks.
The expression below keeps giving me a error messege "Reserved Error (-3025)
There is no message for this error"

Does any one have any suggestions.

SELECT Qry_weekly_Comparasion.date, Qry_weekly_Comparasion.day, (SELECT Count
(*) FROM Qry_weekly_Comparasion AS TMP WHERE
TMP.Date > Qry_weekly_Comparasion.Date AND TMP.Day = Qry_weekly_Comparasion.
Day)+1 AS Week;
 
H

huangtianliang

»ÆÌìÁÁ·¢²¼ÐÂÎÅ×éÐÅÏ¢
ÎÒ¸Õ¿ªÁ˸öСµê£¬µêÆ̵ÄÍøÖ·ÊÇhttp://shop57847548.taobao.com
»áÔ±ÃûÊÇ£º»ÆÌìÁÁ21
µêÃûÊÇ£ºÉê°ÂЬ³Ç-ÐË¡Ьµê
Çë´ó¼ÒÓÐʱ¼äÀ´¿´¿´°¡¡£µêÀïÖ÷Òª¾­Óª¸÷ÖÖ¿îʽµÄÄÐÅ®Ô˶¯Ð¬¡£¿îʽʱÉУ¬Ç°ÎÀ¡£
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top