Method : [BaseAdd] error ?
Posted: Sun Nov 02, 2008 10:41 pm
Hi there,
I'm design a report and i pass some dynamic create sql and statement to my datasource.
Some sort like :-
If chkException.Checked Then
If Included = "" Then
Included = " AND ((M.EXCEPTIONOCCUR='Y')"
Else
Included = Included + " OR (M.EXCEPTIONOCCUR='Y')"
End If
End If
If chkEarlyOut.Checked Then
If Included = "" Then
Included = " AND ((M.EARLYOUT='Y')"
Else
Included = Included + " OR (M.EARLYOUT='Y')"
End If
End If
But while i preview report, this error come out occasionally :-
Method : [BaseAdd]
DataTable already belongs to this Dataset
Any idea to solve it?
Thanks in advance.
I'm design a report and i pass some dynamic create sql and statement to my datasource.
Some sort like :-
If chkException.Checked Then
If Included = "" Then
Included = " AND ((M.EXCEPTIONOCCUR='Y')"
Else
Included = Included + " OR (M.EXCEPTIONOCCUR='Y')"
End If
End If
If chkEarlyOut.Checked Then
If Included = "" Then
Included = " AND ((M.EARLYOUT='Y')"
Else
Included = Included + " OR (M.EARLYOUT='Y')"
End If
End If
But while i preview report, this error come out occasionally :-
Method : [BaseAdd]
DataTable already belongs to this Dataset
Any idea to solve it?
Thanks in advance.