Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Update record
Message
De
17/10/2001 23:30:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00569376
Message ID:
00570064
Vues:
26
Hi Sergy,

I remodified the code while waiting for your answer, Please see below.


If Empty(.Entrydate)
cEntrydate = "NULL "
Else
cEntrydate = [{] + Dtoc(.Entrydate) + [}]
Endif

cSQL = [INSERT INTO bbfs!callinv(] +;
[dcno,] +;
[callrefno,] +;
[entrydate,] +;
[calldate)] +;
[values(] + Alltrim(Str(cDcno)) + [,] +;
+ Alltrim(Str(cCallrefno)) + [,] +;
+ cEntrydate + [,] +;
+ cCalldate + [)]

This code works fine, but when I tried to include a logical field, it does not insert the record to the table anymore. Please see code below.

cSQL = [INSERT INTO bbfs!callinv(] +;
[dcno,] +;
[callrefno,] +;
[status,] +;
[entrydate,] +;
[calldate)] +;
[values(] + Alltrim(Str(cDcno)) + [,] +;
+ Alltrim(Str(cCallrefno)) + [,] +;
+ [.F.] + [,] +;
+ cEntrydate + [,] +;
+ cCalldate + [)]
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform