Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert Into Access
Message
De
05/06/2002 05:25:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Insert Into Access
Divers
Thread ID:
00664851
Message ID:
00664851
Vues:
61
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform