Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Into Access
Message
 
To
05/06/2002 05:25:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00664851
Message ID:
00664865
Views:
25
Try to use Access's CStr() function instead of DTOC().

>I get the following error when I try to run the code below:
>Connectivity error: [Microsoft][ODBC Microsoft Access Driver] Undefined function 'DTOC' in expression.
>
>Code
>
>lnResult = SQLEXEC( lnAccess,"INSERT INTO transaction "+;
> "([promono],[batch],[filename],[problem],[dateout])"+;
> " VALUES "+;
> "(?tmpdata.promono,?tmpdata.batch,?tmpdata.filename,?tmpdata.problem,DTOC(?tmpdata.dateout))" )
>
>If I leave out the DTOC I get a data type mismatch. The field in access
>is a date/time field and the VFP field is a datetime field.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform