Simple VBA Date issue (SQL)

vapid2323

Scion
Local time
Yesterday, 20:45
Joined
Jul 22, 2008
Messages
217
I just want to get a Date back when I run the following

Code:
DoCmd.RunSQL "INSERT INTO [tblSurveillance] ([fk_SiteID], [Surv_Audit]) VALUES (" & Forms!frmMain_toplg!SubForm1!SiteID.Value & "," & #1/1/2000# & ");"

But instead I get 12:00:43 AM

I am sure this is simple, Help!
 
Try

...VALUES (" & Forms!frmMain_toplg!SubForm1!SiteID.Value & ", #1/1/2000#);"

I'd concatenate if getting the date from a form or something.
 
I still need practice it would seem :)

Thanks!
 

Users who are viewing this thread

Back
Top Bottom