Hello everyone. I am trying to run this code and I keep getting the (To few perimiters. Exopected 1 Run_Time Error 3061) What the code does is count home many times a button is pushed and the " WHERE (((tblMystery.EntryDate)=Date()));" is part of current date.. Well that is what it is suppose to do. When I push the btnVisible button the error pops up when it is suppose to count 1 more click. Thank-you everyone. I am running Access 2016
Code:Private Sub btnVisible_Click() CurrentDb.Execute "UPDATE tblMystery SET btnVisible.Clicks = Clicks + 1" & _ " WHERE (((tblMystery.EntryDate)=Date()));" Me.Requery Me.TextBox2.Visible = True Dim rs As DAO.Recordset Me.TimerInterval = 0 Set rs = CurrentDb.OpenRecordset("Select * From tblMysteryLog") rs.AddNew rs!StartOfTest = Me.txtSessionStart rs!EndOfTest = Now() rs!ActualMinutes = Me.txtActualMinutes rs!ActualSeconds = Me.txtActualSeconds rs.Update rs.Close Set rs = Nothing 'MsgBox "Data logged.", vbOKOnly, "Logged" End Sub