offeneUSTVA, etc.
This commit is contained in:
@@ -574,12 +574,12 @@ Public Class frmUSTVoffeneAntraege
|
|||||||
Next
|
Next
|
||||||
|
|
||||||
If dtKundeMWST.Columns.Contains("KdNr") Then
|
If dtKundeMWST.Columns.Contains("KdNr") Then
|
||||||
If dtKundeMWST.Rows.Count > 0 Then sqlwhereLand &= "And "
|
'If dtKundeMWST.Rows.Count > 0 Then sqlwhereLand &= "And "
|
||||||
For Each row As DataRow In dtKundeMWST.Rows
|
'For Each row As DataRow In dtKundeMWST.Rows
|
||||||
landBez = row.Item("abc").ToString.Replace(";", "'")
|
' landBez = row.Item("abc").ToString.Replace(";", "'")
|
||||||
counter = counter + 1
|
' counter = counter + 1
|
||||||
sqlwhereLand &= " ( AdressenNr = " & row.Item("KdNr") & " AND Einreichland Not in (" & landBez.ToString.Substring(0, landBez.ToString.Length - 1) & ") " & IIf(dtKundeMWST.Rows.Count <> 0 And counter <> dtKundeMWST.Rows.Count, "OR ", klammer)
|
' sqlwhereLand &= " ( AdressenNr = " & row.Item("KdNr") & " AND Einreichland Not in (" & landBez.ToString.Substring(0, landBez.ToString.Length - 1) & ") " & IIf(dtKundeMWST.Rows.Count <> 0 And counter <> dtKundeMWST.Rows.Count, "OR ", klammer)
|
||||||
Next
|
'Next
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user