BofRossClan
Technical User
I am coding the way I always have, and formatting my date the same, but suddenly, this date (which is keyed into the field Me![dtDelDate] on my form), is converted to 12/30/1899 when I execute the following code:
No matter what date I put in, it comes out the same wrong date.
Has anyone ever had this happen? What am I missing?
Code:
Dim dtDelivDate As Date
dtDelivDate = Me![dtDelDate]
DoCmd.RunSQL "UPDATE DISTINCTROW [Market Orders] SET [Market Orders].[Order Date] = " & dtDelivDate & " WHERE ((([Market Orders].Control)='C'));"
Has anyone ever had this happen? What am I missing?