Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Running a simple query in microsoft.public.access.adp.sqlserver

Started 1 month, 2 weeks ago by Lucinda
Hi, I am very new to Access ADP and SQL. In other words I am in over my head. I am trying to write a query to sum Vacation Hours As Total Vacation Hours. I am receiving Incorrect Syntax near the keyword 'AS'. This worked in regular MDB Access so any help or advice would be greatly appreciated....
Site: Discussions in microsoft.public.access.adp.sqlserver  Discussions in microsoft.public.access.adp.sqlserver - site profile
Forum: microsoft.public.access.adp.sqlserver  microsoft.public.access.adp.sqlserver - forum profile
Total authors: 2 authors
Total thread posts: 3 posts
Thread activity: no new posts during last week
Domain info for: microsoft.com

Other posts in this thread:

Bob McClellan replied 1 month, 2 weeks ago
You did not post your DML. the sql should be the same though... However, from what you've wrote... try Sum([Vacation Hours]) as 'Total Vacation Hours' hth, bob "Lucinda" <Lucinda@discussions.microsoft.com> wrote in message news:D2D2CE97-5E50-40A6-AAF6-0D882BDB1D53@microso ft.com... > Hi, > > I am very new ...

Lucinda replied 1 month, 2 weeks ago
thank you. I found that if I removed the commas, it worked like a charm. SELECT EMPLID, NAME, SUM([Vacation Hours Used 1] + [Vacation Hours Used 2] + [Vacation Hours Used 3] + [Vacation Hours Used 4] + [Vacation Hours Used 5] + [Vacation Hours Used 6] + [Vacation Hours Used 7] + [Vacation Hours Used 8] + [Vacation Hours Used 9] + [...

 

Top contributing authors

Name
Posts
Lucinda
2
user's latest post:
Running a simple query in...
Published (2009-11-13 13:39:00)
&nbsp; thank you. I found that if I removed the commas, it worked like a charm. SELECT EMPLID, NAME, SUM([Vacation Hours Used 1] + [Vacation Hours Used 2] + [Vacation Hours Used 3] + [Vacation Hours Used 4] + [Vacation Hours Used 5] + [Vacation Hours Used 6] + [Vacation Hours Used 7] + [Vacation Hours Used 8] + [Vacation Hours Used 9] + [Vacation Hours Used 10]) AS Total FROM LADOLFO.Combination GROUP BY EMPLID, NAME &quot;Bob...
Bob McClellan
1
user's latest post:
Running a simple query in...
Published (2009-11-13 12:20:00)
&nbsp; You did not post your DML. the sql should be the same though... However, from what you've wrote... try Sum([Vacation Hours]) as 'Total Vacation Hours' hth, bob &quot;Lucinda&quot; &lt;Lucinda@discussions.microsoft.com&gt; wrote in message news:D2D2CE97-5E50-40A6-AAF6-0D882BDB1D53@microsoft.com... &gt; Hi, &gt; &gt; I am very new to Access ADP and SQL. In other words I am in over my head....

Related threads on "Discussions in microsoft.public.access.adp.sqlserver":

Related threads on other sites:

Thread profile page for "Running a simple query in microsoft.public.access.adp.sqlserver" on http://www.microsoft.com/communities/newsgroups.... This report page is a snippet summary view from a single thread "Running a simple query in microsoft.public.access.adp.sqlserver", located on the Message Board at http://www.microsoft.com/communities/newsgroups.... This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity