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

Click here to load this message in the networking platform