Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC() problems
Message
From
15/01/2001 06:36:33
 
 
To
14/01/2001 21:21:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00463631
Message ID:
00463707
Views:
12
Hi!

Following should work:

ldDate = DATE()
x = SQLEXEC(gnHandle,'INSERT INTO laypay ("date") VALUES (?ldDate)')



>Hi,
>
>I have a remote view 'rvLaypaty' linked to a Paradox table 'laypay'. Unfortunately the Paradox table has a field name called 'date' which is a reserved SQL name, so I am unable to use the View designer for this particular job.
>
>I have tried using SQLEXEC in the following code...
>
>x = SQLEXEC(gnHandle,'INSERT INTO laypay ("date") VALUES (DATE()),fvLaypay)
>
>...all works OK, however the following I can't get to work...
>
>ldDate = DATE()
>x = SQLEXEC(gnHandle,'INSERT INTO laypay ("date") VALUES (ldDate),fvLaypay)
>
>...I have tried macro substitution and everything I can imagine to get it to work with anything but DATE(), to no avail.
>
>Any help would be most appreciated.
>
>Regards
>Doug Johnston
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform