Operation =1
Option =0
Where ="(((tbl_ad.AD) Like [AD angeben]))"
Begin InputTables
    Name ="tbl_leadbezahlt"
    Name ="tbl_ad"
    Name ="tbl_mepleadeingang"
    Name ="tbl_mepleadeingangtyp"
End
Begin OutputColumns
    Expression ="tbl_ad.AD"
    Expression ="tbl_mepleadeingang.lead_id"
    Expression ="tbl_mepleadeingang.vorname"
    Expression ="tbl_mepleadeingang.nachmane"
    Expression ="tbl_mepleadeingang.plz"
    Expression ="tbl_mepleadeingang.stadt"
    Expression ="tbl_mepleadeingang.create_datetime"
    Expression ="tbl_mepleadeingang.bearbeitungsstatus"
    Expression ="tbl_mepleadeingangtyp.name"
    Expression ="tbl_leadbezahlt.Bezahlt_AM"
    Expression ="tbl_leadbezahlt.Bezahlt_Von"
    Expression ="tbl_leadbezahlt.Provision"
End
Begin Joins
    LeftTable ="tbl_mepleadeingang"
    RightTable ="tbl_ad"
    Expression ="tbl_mepleadeingang.BCSADID_c = tbl_ad.ID"
    Flag =1
    LeftTable ="tbl_mepleadeingang"
    RightTable ="tbl_mepleadeingangtyp"
    Expression ="tbl_mepleadeingang.bearbeitungsstatus = tbl_mepleadeingangtyp.id"
    Flag =1
    LeftTable ="tbl_mepleadeingang"
    RightTable ="tbl_leadbezahlt"
    Expression ="tbl_mepleadeingang.lead_id = tbl_leadbezahlt.Lead_ID"
    Flag =2
End
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="60"
dbByte "RecordsetType" ="0"
dbBoolean "OrderByOn" ="0"
dbByte "Orientation" ="0"
dbByte "DefaultView" ="2"
Begin
End
Begin
    State =2
    Left =-6
    Top =-27
    Right =3442
    Bottom =1248
    Left =-1
    Top =-1
    Right =3433
    Bottom =144
    Left =0
    Top =0
    ColumnsShown =539
    Begin
        Left =884
        Top =1
        Right =980
        Bottom =110
        Top =2
        Name ="tbl_leadbezahlt"
        Name =""
    End
    Begin
        Left =689
        Top =11
        Right =785
        Bottom =120
        Top =4
        Name ="tbl_ad"
        Name =""
    End
    Begin
        Left =62
        Top =9
        Right =158
        Bottom =118
        Top =0
        Name ="tbl_mepleadeingang"
        Name =""
    End
    Begin
        Left =396
        Top =6
        Right =492
        Bottom =85
        Top =0
        Name ="tbl_mepleadeingangtyp"
        Name =""
    End
End
