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

VS 2010 Problem with tableadapter

$
0
0
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:

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)))

Dous anyone knows why this is?
Attached Images
 

Viewing all articles
Browse latest Browse all 27196

Trending Articles



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