Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 SELECT X AS Y

Author  Topic 

spib
Starting Member

9 Posts

Posted - 2002-07-11 : 15:57:04
Hi,

This is a SQL Server script which seems to barf in access 2000 and I don't know why

SELECT ([PlayCount] + [AutoPlayCount]) AS TotalPlayCount
FROM [MetaData]
ORDER BY [TotalPlayCount] DESC

When I run it, access prompts for a value for TotalPlayCount

MichaelP
Jedi Yak

2489 Posts

Posted - 2002-07-11 : 16:16:00
I'm pretty sure it's that order by.

I know it doesn't look as nice, but it should work:

SELECT ([PlayCount] + [AutoPlayCount]) AS TotalPlayCount
FROM [MetaData]
ORDER BY ([PlayCount] + [AutoPlayCount]) DESC




<Yoda>Use the Search page you must. Find the answer you will.
Go to Top of Page

spib
Starting Member

9 Posts

Posted - 2002-07-11 : 17:30:00
Yeah, that fixed it - thanks. Access is so stupid sometimes.

Go to Top of Page
   

- Advertisement -