Domanda

I've been following the procedures at this link for several hours and I can't seem to make it work on my project. Simple reports are working, but when I use the parent-child stuff or grouping, the error "Failed getting Rowset(s) from current data source" always occurs.

I have two tables:

  1. tblItems
  2. tblItemCategory

I need a column from tblItemCategory so I came up with this SQL query:

SELECT ic.Code AS 'Category Code'
     , ic.Description AS 'Category'
     , i.ItemCode AS 'Item Code'
     , i.Description 
FROM   dbo.tblItems i
INNER JOIN 
       tblItemCategory ic
ON     i.ItemCategory=ic.Code

This query is working if I only show the records the usual manner in the Data Report (Page Header-Details manner). When I use grouping,

enter image description here

it becomes like this:

enter image description here

Therefore, I just dragged the Summary fields to the Group section and the Detail fields to the Detail section.

enter image description here

This does not work.

enter image description here

I tried using the Northwind Access database and it works fine.

È stato utile?

Soluzione

I figured it out. The reason why it works on Access but not in SQL Server is that:

Access: Use client-side cursors

SQL Server: Use server-side cursors

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top