J
Jay
I need to copy all records with Test Dates for 2006 from a table to a Temp
table. My problem is the * and the strYear combination.
Dim strYear As String
strYear = InputBox("Which Year do you want as in 2006?")
DoCmd.RunSQL "INSERT INTO tblTemp (TestDate,)" & _
"SELECT tblDucatLists.ID, tblDucatLists.TestDate" & _
FROM tblDucatLists WHERE (tblDucatLists.TestDate) Like '*'" & strYear
table. My problem is the * and the strYear combination.
Dim strYear As String
strYear = InputBox("Which Year do you want as in 2006?")
DoCmd.RunSQL "INSERT INTO tblTemp (TestDate,)" & _
"SELECT tblDucatLists.ID, tblDucatLists.TestDate" & _
FROM tblDucatLists WHERE (tblDucatLists.TestDate) Like '*'" & strYear