ClulessChris
IS-IT--Management
The following is throwing the error "Too few Parameters. Expected 2."
I just can't see the error. Can sombody please help?
Never knock on Death's door: ring the bell and run away! Death really hates that!
I just can't see the error. Can sombody please help?
Code:
Private Sub AddDataToSheet(ByVal sTeamName As String, _
ByVal sSubject As String, ByVal dtReceived As Date, _
ByVal sStatus As String, ByVal dtAssigned As Date)
Dim sSql As String
sSql = "INSERT INTO tblDump ([Team Folder],Subject,Received,[Current Owner], Accepted) " & _
"VALUES ('" & sTeamName & "','" & sSubject & "',[" & dtReceived & "],'" & sStatus & "',[" & dtAssigned & "])"
CurrentDb.Execute sSql
End Sub
Never knock on Death's door: ring the bell and run away! Death really hates that!