Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Posts
    3

    Unanswered: Zoom in Access forms and reports

    Hello,

    I'm trying to write some VBA code which should zoom some forms (and reports) when opening. I have written the following code:

    Sub zoom()
    DoCmd.OpenForm "Products", acViewPreview
    DoCmd.RunCommand acCmdZoom150
    End Sub

    This code does not seem to work perfectly. Does anyone know what I am doing wrong here.

    Kind Regards,
    Jim

  2. #2
    Join Date
    Oct 2003
    Location
    US
    Posts
    343

    Re: Zoom in Access forms and reports

    Zoom command only works for reports and not for form, For forms you have to use maximize or restore size. To make form look zoomed. You have to manually create a form with big controls having larger fonts. there is no automatic zoom for forms.

    Originally posted by jim_van_de_berg
    Hello,

    I'm trying to write some VBA code which should zoom some forms (and reports) when opening. I have written the following code:

    Sub zoom()
    DoCmd.OpenForm "Products", acViewPreview
    DoCmd.RunCommand acCmdZoom150
    End Sub

    This code does not seem to work perfectly. Does anyone know what I am doing wrong here.

    Kind Regards,
    Jim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •