Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Into Access
Message
From
05/06/2002 05:25:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Insert Into Access
Miscellaneous
Thread ID:
00664851
Message ID:
00664851
Views:
60
Hi All,

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.

Anyone any ideas?

Thanking you in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform