CodyMonster
Board Regular
- Joined
- Sep 28, 2009
- Messages
- 159
I'm getting a syntax error for the insert into part of this code..
I'm probably doing something easy and just over looking a " or something.
Totally frustrated.
I'm probably doing something easy and just over looking a " or something.
Totally frustrated.
Code:
Dim strSQL As String
BWreportdate = XlApp.Range("A13").Value '<-- this is a date in Excel
strSQL = "insert into 9-Daily_Physical_Date([Date])" & "Values(#BWReportDate#);"
DoCmd.RunSQL strSQL