Operation =1
Option =0
Where ="(((tbl_mepleadeingang.lead_id)=[Lead ID angeben]))"
Begin InputTables
    Name ="tbl_mepleadeingang"
    Name ="tbl_kunden_solar"
    Name ="tbl_statustabelle"
End
Begin OutputColumns
    Expression ="tbl_mepleadeingang.lead_id"
    Expression ="tbl_mepleadeingang.anrede"
    Expression ="tbl_mepleadeingang.vorname"
    Expression ="tbl_mepleadeingang.nachmane"
    Expression ="tbl_mepleadeingang.anschrift"
    Expression ="tbl_mepleadeingang.plz"
    Expression ="tbl_mepleadeingang.BCSADID_c"
    Expression ="tbl_mepleadeingang.EXTERNAL_ID_c"
    Expression ="tbl_mepleadeingang.APRSTATUSNUMMER_c"
    Expression ="tbl_mepleadeingang.Kampagne"
    Expression ="tbl_mepleadeingang.create_datetime"
    Expression ="tbl_kunden_solar.bcs_kd_nummer"
    Expression ="tbl_statustabelle.Status_NR"
    Expression ="tbl_statustabelle.Terminierer"
    Expression ="tbl_statustabelle.Anruftag"
    Expression ="tbl_statustabelle.Status"
    Expression ="tbl_statustabelle.AD"
    Expression ="tbl_statustabelle.Termintag"
    Expression ="tbl_statustabelle.Termindatum"
    Expression ="tbl_statustabelle.Terminzeit"
    Expression ="tbl_statustabelle.[Termin Bemerkung]"
    Expression ="tbl_statustabelle.Ergebnis"
    Expression ="tbl_statustabelle.Ergebnis_unter"
    Expression ="tbl_statustabelle.Status_NR"
End
Begin Joins
    LeftTable ="tbl_mepleadeingang"
    RightTable ="tbl_kunden_solar"
    Expression ="tbl_mepleadeingang.lead_id = tbl_kunden_solar.mep_kd_nummer"
    Flag =1
    LeftTable ="tbl_kunden_solar"
    RightTable ="tbl_statustabelle"
    Expression ="tbl_kunden_solar.bcs_kd_nummer = tbl_statustabelle.KD_NR"
    Flag =1
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.Status"
        dbInteger "ColumnWidth" ="2985"
        dbBoolean "ColumnHidden" ="0"
    End
    Begin
        dbText "Name" ="tbl_statustabelle.AD"
        dbInteger "ColumnWidth" ="1620"
        dbBoolean "ColumnHidden" ="0"
    End
    Begin
        dbText "Name" ="tbl_statustabelle.Ergebnis"
        dbInteger "ColumnWidth" ="2385"
        dbBoolean "ColumnHidden" ="0"
    End
End
Begin
    State =2
    Left =-6
    Top =-27
    Right =3442
    Bottom =1248
    Left =-1
    Top =-1
    Right =3437
    Bottom =144
    Left =0
    Top =0
    ColumnsShown =539
    Begin
        Left =38
        Top =6
        Right =134
        Bottom =115
        Top =14
        Name ="tbl_mepleadeingang"
        Name =""
    End
    Begin
        Left =312
        Top =25
        Right =408
        Bottom =134
        Top =0
        Name ="tbl_kunden_solar"
        Name =""
    End
    Begin
        Left =588
        Top =11
        Right =684
        Bottom =120
        Top =0
        Name ="tbl_statustabelle"
        Name =""
    End
End
