Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Update record
Message
From
17/10/2001 23:30:42
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00569376
Message ID:
00570064
Views:
27
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform