Hallo,
vor knapp einem Jahr hatte ich schon mal das Problem, in Base zu einem 
Datum eine Anzahl von Jahren zu addieren. Von der Liste (Andreas) bekam 
ich Hilfe und hatte dann diese Formel:
CONVERT ( CONVERT ( ( YEAR( "Datumsfeld" ) + "AnzahlJahre" ) , CHAR ) + 
'-' + CONVERT ( MONTH( "Datumsfeld" ) , CHAR ) + '-' + CONVERT ( DAY( 
"Datumsfeld" ) , CHAR ) , DATE ) AS "Ablauf"
Bis vor ca. 6 Wochen funktionierte das auch. Jetzt bekomme ich aber 
immer eine Fehlermeldung:
"SQL-Status: 37000
Fehler-Code: -16
Wrong data type: java.lang.IllegalArgumentException in statement [SELECT 
..."
Als Ursache habe ich einstellige Monate bzw. Tage ausgemacht.
Meine nicht sehr elegante Lösung: Mit case when ... bei Bedarf die 
fehlende Null eingefügt und es geht.
Das ist nun aber keine schöne Lösung, deshalb die Frage: Geht es eleganter?
Alles mit LibreOffice 3.4.4 OOO340m1 (Build:402) und Win Vista
Ahoi und einen schönen 3. Advent
Thomas
--
Informationen zum Abmelden: E-Mail an users+help@de.libreoffice.org
Probleme? http://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: http://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: http://listarchives.libreoffice.org/de/users/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert
Context
- [de-users] Jahr zu Datum addieren · Thomas
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.