SQL runtime error 3061
I have the below code that seems to work up to the SQL, the problem i am having is that apparently i do not have enough parameters yet i do not have the problem until i try and include the ActionTakenBy which is when i recieve the 3061 error.
I added a msgbox to show me what the SQL string looked like and all the fields where shown which is why nothing is making sense.
Any help would be great!!
Dim sSql1 As String
iActionTaken = ActionTaken(varWarrantDate, [Warrant Letter Sent], LA_WARRANT_ARRANGED, LA_WARRANT_DATE_DELETED, LA_WARRANT_DATE_CHANGED)
If (iActionTaken = LA_NONE) Then
iActionTaken = ActionTaken(varEuroLtrDate, [Euro Letter Sent], LA_EURO_LTR_ARRANGED, LA_EURO_LTR_DATE_DELETED, LA_EURO_LTR_DATE_CHANGED)
End If
If (iActionTaken = LA_NONE) Then
iActionTaken = ActionTaken(varSecondLtrDate, [2nd Letter Sent], LA_2ND_LTR_SENT, LA_2ND_LTR_DATE_DELETED, LA_2ND_LTR_DATE_CHANGED)
End If
If (iActionTaken = LA_NONE) Then
iActionTaken = ActionTaken(varFirstLtrDate, [1st Letter Sent], LA_1ST_LTR_SENT, LA_1ST_LTR_DATE_DELETED, LA_1ST_LTR_DATE_CHANGED)
End If
If iActionTaken > 0 Then
sSql1 = "INSERT INTO [Worked History](MPAN,ActionTaken,ActionTakenBy)" _
& "VALUES (" & Me.MPAN & "," & iActionTaken & "," & Me.Assigned_To & ");"
MsgBox sSql1
CurrentDb.Execute sSql1
End If
|