"The expression On Click you entered as the event property setting produced the following error: Procedure declaration does not match description of event or procedure having the same name."
That's the error I am receiving when I am trying to click a button, on a bound form to a table, that executes this code:
The "Call ElectionAwardUp date" is a Module, and here is the code:
Does anyone know how to get rid of this error: I did some Googling and tried to Import all objects into a new database, Compact & Repair, comment out certain lines of code. Nothing worked.
Any ideas? Thank you.
That's the error I am receiving when I am trying to click a button, on a bound form to a table, that executes this code:
Code:
Private Sub HomeBtn_Click() Call ElectionAwardUpdate DoCmd.Close acForm, Me.Name DoCmd.OpenForm "Home" End Sub
Code:
Public Sub ElectionAwardUpdate()
'update non-identifying foreign key to reflect new elections
DoCmd.SetWarnings False
DoCmd.OpenQuery "UpdateAwardPriElectionQry"
DoCmd.OpenQuery "UpdateAwardSecElectionQry"
DoCmd.SetWarnings True
End Sub
Any ideas? Thank you.
Comment