Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Into Command
Message
From
23/10/2001 15:20:06
 
 
To
23/10/2001 15:11:44
General information
Forum:
Microsoft Office
Category:
Access
Miscellaneous
Thread ID:
00572148
Message ID:
00572247
Views:
53
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform