Can anyone here shed some light on this problem whenever the code below is run the following error appears
Runtime error 3061
Too few parameters. Expected 2.
This is the code that causes it, the long line of SQL is where it stops.
hopefully someone can lend a hand here as according to the help file any other parameters are purely optional - and if I need to use one what would it be - I dont fully understand what they are going on about -
maybe its "a case of the mondays" i dunno
Regards,
Mike
Runtime error 3061
Too few parameters. Expected 2.
This is the code that causes it, the long line of SQL is where it stops.
Code:
Dim Db As DAO.Database
Dim strSQL As String
Set Db = CurrentDb
Db.Execute "UPDATE Work SET [Hours Worked] = '" & hoursText & "' WHERE Job.[FM Reference] = '" & fmRefText & "' AND Job.[SE Reference] = '" & seRefText & "' AND [Designer] = '" & techCombo & " '"
hopefully someone can lend a hand here as according to the help file any other parameters are purely optional - and if I need to use one what would it be - I dont fully understand what they are going on about -
maybe its "a case of the mondays" i dunno
Regards,
Mike