The error message is saying there's something wrong with whatever you've got
as the procedure to run on the form's Current event.
Open the form's properties, and find the On Current property on the Event
tab. What's beside it?
If it's the line of code you have posted, you can't put that as a event
procedure: it must be either the name of a macro in your database, the name
of a function in your database (preceded with an equal sign), or the text
[Event Procedure] (complete with square brackets).
If it's [Event Procedure], click on the ellipsis to the right (...), and
make sure that the procedure to which the VB Editor opens starts Private Sub
Form_Current( ). If there's anything in the parentheses, that's the problem.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"albycindy" <(E-Mail Removed)> wrote in message
news:9C04F562-D4A0-44DF-8454-(E-Mail Removed)...
> The following line of code was working fine before I went on holidays, now
> I'm back and whenever I open the form it tells me there is a problem with
> this code......why?
>
> "The expression On Current 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." WTF?
>
> Me.cmdCarrier.Enabled = Nz(Me.CarrierClaim.Value, False)
>
> cheers