Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date type
Message
 
To
31/07/2006 18:03:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01141936
Message ID:
01141976
Views:
20
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform