Operation =1
Option =0
Where ="(((tbl_statustabelle.Status)=\"termin energie VK\" Or (tbl_statustabelle.Status)"
    "=\"Termin Energie Analyse\") AND ((tbl_statustabelle.Termindatum)>Date()))"
Begin InputTables
    Name ="tbl_statustabelle"
    Name ="tbl_kunden_solar"
    Name ="tbl_kunden"
End
Begin OutputColumns
    Expression ="tbl_statustabelle.Status"
    Expression ="tbl_statustabelle.Anruftag"
    Expression ="tbl_statustabelle.Terminierer"
    Expression ="tbl_statustabelle.Termindatum"
    Expression ="tbl_statustabelle.Ergebnis"
    Expression ="tbl_statustabelle.Status_NR"
    Expression ="tbl_kunden_solar.mep_kd_nummer"
End
Begin Joins
    LeftTable ="tbl_statustabelle"
    RightTable ="tbl_kunden_solar"
    Expression ="tbl_statustabelle.KD_NR = tbl_kunden_solar.bcs_kd_nummer"
    Flag =2
    LeftTable ="tbl_statustabelle"
    RightTable ="tbl_kunden"
    Expression ="tbl_statustabelle.KD_NR = tbl_kunden.KD_NR"
    Flag =2
End
Begin OrderBy
    Expression ="tbl_statustabelle.Termindatum"
    Flag =0
End
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="60"
dbByte "RecordsetType" ="0"
dbBoolean "OrderByOn" ="0"
dbByte "Orientation" ="0"
dbByte "DefaultView" ="2"
Begin
    Begin
        dbText "Name" ="tbl_statustabelle.Ergebnis"
        dbInteger "ColumnWidth" ="4440"
        dbBoolean "ColumnHidden" ="0"
    End
    Begin
        dbText "Name" ="tbl_kunden_solar.mep_kd_nummer"
        dbInteger "ColumnWidth" ="1680"
        dbBoolean "ColumnHidden" ="0"
    End
    Begin
        dbText "Name" ="tbl_statustabelle.Status"
        dbInteger "ColumnWidth" ="2250"
        dbBoolean "ColumnHidden" ="0"
    End
End
Begin
    State =2
    Left =-4
    Top =-30
    Right =2560
    Bottom =1241
    Left =-1
    Top =-1
    Right =2557
    Bottom =144
    Left =0
    Top =0
    ColumnsShown =539
    Begin
        Left =38
        Top =6
        Right =134
        Bottom =120
        Top =2
        Name ="tbl_statustabelle"
        Name =""
    End
    Begin
        Left =172
        Top =6
        Right =336
        Bottom =120
        Top =0
        Name ="tbl_kunden_solar"
        Name =""
    End
    Begin
        Left =374
        Top =6
        Right =470
        Bottom =120
        Top =4
        Name ="tbl_kunden"
        Name =""
    End
End
