Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert Into Command
Message
De
23/10/2001 15:20:06
 
 
À
23/10/2001 15:11:44
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Divers
Thread ID:
00572148
Message ID:
00572247
Vues:
52
This message has been marked as a message which has helped to the initial question of the thread.
>No dice, I am still getting the error.
>
>The field for the insertion is Date/Time
>I have dimmed the memvar as date and stored Date to it.

Sorry, mental lapse, you should CStr() the variable before concatenating. The following should work:
Dim dVar As Date
dVar = Now
DoCmd.RunSQL "Insert Into myTable (Column1, column3, Column4) Values (9, 'Myname', #" & CStr(dVar) & "#)"
HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform