From: Judy on 26 Apr 2006 10:21 Hello - I am trying to use the ADHResize2K utility and i get the following error: The expression on open you entered as the event propert setting produced the following error: procedure declaration you have given does not match description of event or procedure having the same name. First I set up the reference and made sure the ADHResize2K box was checked. I have added to the Declarations Private frmResize As ADHResize2K.FormResize And to the form's open event: Private Sub Form_Open() Set frmResize = ADHResize2K.CreateFormResize Set frmResize.Form = Me End Sub Thanks for any suggestions. Judy
From: Brendan Reynolds on 26 Apr 2006 10:49 The first line of a Form_Open event procedure should look like so ... Private Sub Form_Open(Cancel As Integer) Your code is missing the Cancel argument. -- Brendan Reynolds Access MVP "Judy" <dmullinix(a)austin.rr.com> wrote in message news:1146061271.946100.295350(a)y43g2000cwc.googlegroups.com... > Hello - I am trying to use the ADHResize2K utility and i get the > following error: > > The expression on open you entered as the event propert setting > produced the following error: procedure declaration you have given does > not match description of event or procedure having the same name. > > First I set up the reference and made sure the ADHResize2K box was > checked. > > I have added to the Declarations > > Private frmResize As ADHResize2K.FormResize > > And to the form's open event: > > Private Sub Form_Open() > Set frmResize = ADHResize2K.CreateFormResize > Set frmResize.Form = Me > End Sub > > Thanks for any suggestions. Judy >
From: Judy on 26 Apr 2006 11:20 Thanks Brendan - I changed the code and still get the same error. Judy
From: Brendan Reynolds on 26 Apr 2006 17:34 If you could post the modified code, perhaps someone might be able to see what the problem is. -- Brendan Reynolds Access MVP "Judy" <dmullinix(a)austin.rr.com> wrote in message news:1146064822.144958.85790(a)j33g2000cwa.googlegroups.com... > Thanks Brendan - I changed the code and still get the same error. Judy >
|
Pages: 1 Prev: Printer.PaperSize = acPRPSUser Next: Close Excel after TransferSpreadsheet |