Hello,
I have a datasource for usage with a report.
The datasource contains table adapters to fill multiple tables in the report.
All table adapters work perectly except one.
The weird things is that when i run the querry in the querry builder or from sql management studio it outputs the propper data.
However when i try to preview the data from the table adpter i get the following error message:
![Name: previewerror.png
Views: 71
Size: 44.9 KB]()
This is my current querry for the table adapter:
Dous anyone knows why this is?
I have a datasource for usage with a report.
The datasource contains table adapters to fill multiple tables in the report.
All table adapters work perectly except one.
The weird things is that when i run the querry in the querry builder or from sql management studio it outputs the propper data.
However when i try to preview the data from the table adpter i get the following error message:
This is my current querry for the table adapter:
Code:
SELECT Naam, Rijbewijs, VierVijfdag
FROM Chauffeurs
WHERE (NOT EXISTS
(SELECT Naam
FROM Planlijst
WHERE (Naam = Chauffeurs.Naam) AND (Datum = @Datum))) AND (NOT EXISTS
(SELECT 1 AS Expr1
FROM Ziektes_Verlof
WHERE (@Datum BETWEEN Start_Datum AND Eind_Datum) AND (Naam = Chauffeurs.Naam) OR
(Naam = Chauffeurs.Naam) AND (Start_Datum <= @Datum) AND (Eind_Datum IS NULL)))