Einzelnen Beitrag anzeigen

barnti

Registriert seit: 15. Aug 2003
Ort: Mal hier mal da...
689 Beiträge
 
Delphi 7 Enterprise
 
#8

Re: SQL-Statement: String to Int

  Alt 4. Jun 2007, 14:06
Mein Fehler. Es muss heißen:

Delphi-Quellcode:
"SELECT " _
                    & " Invoice.Zeit, " _
                    & " Invoice.Kontaktaufkommen as IK, " _
                    & " Acquiredcustomer.Kontaktaufkommen as AK, " _
                    & " (CInt(Invoice.Kontaktaufkommen) + CInt(Acquiredcustomer.Kontaktaufkommen)) as Kontaktaufkommen " _
                    & " FROM Acquiredcustomer, Invoice" _
                    & " WHERE " _
                    & " Invoice.Zeit = Acquiredcustomer.Zeit" _
                    & " AND " _
                    & " Invoice.Datum = '" & FCDate & "' " _
                    & " AND " _
                    & " Acquiredcustomer.Datum = '" & FCDate & "' "
Die zusätzliche Bedingung am Schluss liefert mir das Gewünschte! Danke für eure Aufmerksamkeit!
Gruß,

Barnti
  Mit Zitat antworten Zitat