I am having an issue with running DoCmd.RunSQL using the data entered in an InputBox. Here is my code.
Dim strSqlPrevWeek As String
strSqlPrevWeek = "DELETE FROM PrevWeek " _
& "WHERE [PrevWeek].[Admit Term] = '" & strInputTerm & "' ;"
strInputTerm = InputBox("Enter the Term:")
DoCmd.RunSQL strSqlPrevWeek
This runs with no errors, but does not delete the records specified.
Thanks.
Dim strSqlPrevWeek As String
strSqlPrevWeek = "DELETE FROM PrevWeek " _
& "WHERE [PrevWeek].[Admit Term] = '" & strInputTerm & "' ;"
strInputTerm = InputBox("Enter the Term:")
DoCmd.RunSQL strSqlPrevWeek
This runs with no errors, but does not delete the records specified.
Thanks.