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
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:
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,
it becomes like this:
Therefore, I just dragged the Summary fields to the Group section and the Detail fields to the Detail section.
This does not work.
I tried using the Northwind Access database and it works fine.
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