Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date type
Message
 
À
31/07/2006 18:03:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01141936
Message ID:
01141976
Vues:
15
>i made the insert like "INSERT INTO tablename values(alltrim(thisform.text1.value))"
>text1 is the input box for the date

You made some mistakes here.
1. If the field is Date type and the textbox is also a date ALLTRIM() will fail. It accepts ONLY strings.
2. If the field is Date type but TextBox is char this INSERT will fail because Date VFP soes not make inplicit convertion between string and Date. use CTOD() as Hilmar suggested.
3. If the field is char but TextBox is Date type INSERT also will fail (see #2) use DTOC().
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform