Error:
Code:
Runtime error '3061'
too few parameters. Expected 1.
Code:
Code:
Private Sub Scheduled_Start_AfterUpdate()
Dim strSql As String
Dim strNote As String
strNote = InputBox("Reason for change:", _
"Rescheduling Tracker")
strSql = "UPDATE AuditT SET AuditT.Note = '" & strNote & "' WHERE me.jobf.Job_ID"
CurrentDb.Execute strSql
End Sub
Debugger highlights:
Code:
CurrentDb.Execute strSql
This is a continuation from a few weeks ago when I was working on this. Basically I have an audit table which tracks date changes. This code is so the user has to input why they change it..
Some things have changed since then.
Jobf now has a subform called workdays. Day_ID is now the record that is changing.
with the setup shown in the code I was getting the input box and then the error.
Now when I change
WHERE me.jobf.Job_ID
to
WHERE me.workdays.day_ID
I get no errors but I don't get an input box either.
I want to add a bit more functionality to this code so I'm keen to resolve it if someone could help.
Cheers.
edit: The input box is now showing. Same error persists