I am trying to refresh 2 queries, MyTaskQuery and MyTaskActions Both queries contain an INSERT SLQ statement to insert values from other tables in to table MyTasksTbl
The Query MyTaskQuery then selects the actions from MyTasksTbl that have my username.
When I've added the Delete SQL command (to remove any completed/closed actions and ensure there are no duplicates), I get a
Run-time error 2046, The command or action 'Requery' isn't available now.
Can anyone advise me why I am getting this error? The code runs on form_load()
SQL = "Delete * From MyTasks Where UserName = '" & User & "';"
DoCmd.RunSQL SQL
DoCmd.Requery MyTaskQuery
DoCmd.OpenQuery MyTasksActions