Jumat, 21 Oktober 2016

Re: [MS_AccessPros] Reserved word

 


Thanks John,

All the other reports get data from a query so the problem did not arise. There are too many places where the Data table is mentioned so I will use brackets and avoid the table name [Data] in future.

Cheers,

Robin

At 21/10/2016 07:13 PM, you wrote:

 

Robin-

You need to either rename your Data table or put the name in brackets, as in:

[Data].UnitType

John Viescas, author
Effective SQL
SQL Queries for Mere Mortals
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Access Applications
http://www.viescas.com/

On Oct 21, 2016, at 08:03, Robin Chapple robinski@westnet.com.au [MS_Access_Professionals] < MS_Access_Professionals@yahoogroups.com> wrote:

I am using Access 2013 and hope to make a report from a query. My
first attempt has shown the error message that I am using a reserved
word. Here is the SQL:

SELECT Data.UnitType, Count(Data.UnitType) AS CountOfUnitType
FROM Data
GROUP BY Data.UnitType
HAVING (((Data.UnitType)<"t") AND ((Count(Data.UnitType))>0.9));

What have I missed?

Many thanks,

Robin Chapple



------------------------------------
Posted by: Robin Chapple <robinski@westnet.com.au >
------------------------------------


------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/MS_Access_Professionals/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/MS_Access_Professionals/join
   (Yahoo! ID required)

<*> To change settings via email:
   MS_Access_Professionals-digest@yahoogroups.com
   MS_Access_Professionals-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   MS_Access_Professionals-unsubscribe@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
   https://info.yahoo.com/legal/us/yahoo/utos/terms/

__._,_.___

Posted by: Robin Chapple <robinski@westnet.com.au>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar