Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime Syntax
Message
 
To
04/05/1998 11:20:25
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00096720
Message ID:
00096747
Views:
13
Ken,

TTOC() might work better than DTOC(). You can also use ? to indicate to FoxPro that it should pass the value of a variable to ODBC rather than the variable itself. Try this:

cString="UPDATE myTable SET dt_Start = ?m.DateTimeVar ..."

>I'm trying to send a datetime value via ODBC to an Access table. The expression is embedded in a string like this:
>
>cString = "UPDATE myTable SET dt_Start = ' + DTOC( DateTime variable ) + '...rest of the string'
>
>nRslt = SQLEXEC( nHandle, cString )
>
>How do I format the string?
Previous
Reply
Map
View

Click here to load this message in the networking platform