Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Problem using "Order By" clause in VB 2010 Express SQL Statement

$
0
0
I want to sort my Salesperson Table by "TotalGross" Descending in a stored Query in a "FillBySortedTotalGross" SQL Statement.

If I use ORDER BY SPCurYrYtdTotGross Descending I get an error trying to save the Query. The Query works fine if I don't include either Ascending or Descending as shown below.

What do I need to do to include "Descending" in my ORDER BY clause?


undefined Code:
  1. SalespersonTable
  2. ORDER BY SPCurYrYtdTotGross

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>