Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO problem inserting Memo data
Message
From
29/06/2002 18:34:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
ADO problem inserting Memo data
Miscellaneous
Thread ID:
00673656
Message ID:
00673656
Views:
48
I've got a web application that captures user data and comments, performs some ADO SELECTS to find the user id/status/info, then dumps the data to a VFP table using an ADO connection and INSERT command. I'm getting an ODBC Error:

An error was generated on 6/29/2002 at 11:53:03 AM. Error Number = #-2147217900 Error Description = [Microsoft][ODBC Visual FoxPro Driver]Command contains unrecognized phrase/keyword. Help Context = 0 Help File Path = Error Source = Microsoft OLE DB Provider for ODBC Drivers

which only occurs when the user comments are greater than 254 characters.

mySQL = "INSERT INTO questions (date,client,firstname,lastname,email,phone,besttime,acctnumber,comments) VALUES (DATETIME()," & "'1030'," & "'" & lcFirstname & "'," & "'" & lcLastName & "'," & "'" & lcEmail & "'," & "'" & lcPhone & "'," & "'" & lcContactTime & "'," & "'" & lcAcctNumber & "'," & "'" & lcComments & "')"

Is building a COM object the best way to accomplish this? Is there something else I can do?

Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform