Sub Macro2()
Dim d$
d = Application.InputBox("Enter date as yyyy-mm-dd", , Format(Now(), "yyyy-mm-dd"), , , , , 2)
With ActiveSheet.ListObjects.Add(SourceType:=0, Source:=Array(Array( _
"ODBC;DSN=MS Access Database;DBQ=C:\Users\Eddie\Desktop\Campaign_Template13.mdb;" & _
"DefaultDir=C:\Users\Eddie\Desktop;DriverId=25;FIL=MS " _
), Array("Access;MaxBufferSize=2048;PageTimeout=5;")), Destination:=Range("$a$15")).QueryTable
.CommandText = Array( _
"SELECT Campaign_Table.ProductID, Campaign_Table.Date_Added" & Chr(13) & "" & Chr(10) & _
"FROM `C:\Users\Eddie\Desktop\Campaign_Template13.mdb`.Campaign_Table Campaign_Table" & Chr(13) & _
"" & Chr(10) & "WHERE (Campaign_Table.Date_Added>{ts '" & d & " 00:00:", "00'})" & Chr(13) & "" & _
Chr(10) & "ORDER BY Campaign_Table.Date_Added")
.RowNumbers = False: .FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False: .BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False: .SaveData = True
.AdjustColumnWidth = True: .RefreshPeriod = 0
.ListObject.DisplayName = "Table7"
.Refresh BackgroundQuery:=False
End With
End Sub