Re: Crosstab with SQL Backend Problem



pete.trudell@xxxxxxxxxxxxxxx wrote:
I really feel like the first man on Mars with this process-- No one
seems to understand Access 2007 and SQL, not even Microsoft has any
suggestions.

Whom have you talked to at Microsoft?


When I set-up the SQL Databse as the Back-end and Access 2007 as the
front end, the Query Grid changed to reflect a SQL Grid,


And you do not have a option to have a Crosstab Row.

And when you go to Microsoft to get help????? No Help. You Figure.

Again, when did you go to Microsoft for help?


Frustrated - Pete

Hmm, somebody must have led you to believe that programming for SQL
Server was the same as programming for Jet, with little or no learning
curve. Well, that's just not the case. No wonder you are frustrated.

I'm afraid I'm a little (lot) out of my depth here. If Access was not in
the picture, I could probably help since I program completely in SQL.
Here is an example of creating a pivot query in SQL 2005 (I'm not even
sure that is the version of SQL you are using ... ). It comes from SQL
Server Books OnLine (BOL) and I suggest you download a copy of it from
the microsoft website:

USE AdventureWorks
GO
SELECT VendorID, [164] AS Emp1, [198] AS Emp2, [223] AS Emp3, [231] AS
Emp4, [233] AS Emp5
FROM
(SELECT PurchaseOrderID, EmployeeID, VendorID
FROM Purchasing.PurchaseOrderHeader) p
PIVOT
(
COUNT (PurchaseOrderID)
FOR EmployeeID IN
( [164], [198], [223], [231], [233] )
) AS pvt
ORDER BY VendorID;

Here is a google search result that provides more explanations about
using pivot:

http://www.google.com/search?q=pivot+operator+t-sql&rls=com.microsoft:en-us:IE-SearchBox&ie=UTF-8&oe=UTF-8&sourceid=ie7

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Re: Upgrading to R2 premium SQL questions
    ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... |> Collation settings in SQL Server is commonly used for international ...
    (microsoft.public.windows.server.sbs)
  • RE: NOLOCK due to data movement
    ... It is unfortunate that you do not understand that this is an SBS problem. ... The default instance of SQL 2005 is working fine. ... Please understanding our newsgroup is mainly focused on SBS support. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: Monitoring & Reporting Wont install! (msde install fails!)
    ... Perform a clean boot on the server. ... SQL Server SP4\MSDE". ... Please paste the output in the newsgroup. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: SBS 2003 Unable to connect to database STS_Config
    ... Microsoft CSS Online Newsgroup Support ... SBS 2003 Unable to connect to database STS_Config ... You cannot upgrade the Monitoring instance to SQL ...
    (microsoft.public.windows.server.sbs)
  • RE: Help please
    ... you can allow access to SQL for user in Windows 2003 domain. ... > newsgroup, as there you may have more good sharing in SQL fields. ... > Microsoft CSS Online Newsgroup Support ... > | At this moment my client use software without license (please don't ask ...
    (microsoft.public.windows.server.sbs)