Hi all,
I have saved UpdateQry named qryvoidBlank on my FE to void blank records (not to delete). If I run query directly or via docm.openquery, it runs without any errors and makes necessary updates. However, if I use Currentdb.execute method then it kicks in error 3061 with "Too few parameters. Expected 2."
Now query is executed from the form by btn_click event and two criteria is passed from the form as well (date and employee number). Spends hours looking for solution, but failed so far. here is the code.
I have saved UpdateQry named qryvoidBlank on my FE to void blank records (not to delete). If I run query directly or via docm.openquery, it runs without any errors and makes necessary updates. However, if I use Currentdb.execute method then it kicks in error 3061 with "Too few parameters. Expected 2."
Now query is executed from the form by btn_click event and two criteria is passed from the form as well (date and employee number). Spends hours looking for solution, but failed so far. here is the code.
Code:
Private Sub Command36_Click()
CurrentDb.Execute "qryvoidBlank", dbFailOnError
end sub