Why does the Zoom dialog box open every time I click on a drop-down?

RockandGrohl

Well-known Member
Joined
Aug 1, 2018
Messages
810
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm a novice at Access and just using a form someone else has made.

One of the pages in form view has a series of drop-down boxes which you can click on to insert a pre-written field.

Every time you click on one, it opens a "Zoom" dialog window, which I then have to close. This is just an annoying behaviour, but the person who made it doesn't know why it happens or how to stop it. Hoping someone here does!

It's this thing:



Thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Suggest you do some debugging to determine details. Since shift +F2 is default to open Zoom box, there may be some vba in one of your procedures that is spawning this behaviour.
 
Upvote 0
Solution
Suggest you do some debugging to determine details. Since shift +F2 is default to open Zoom box, there may be some vba in one of your procedures that is spawning this behaviour.
I'm new to how VBA & access interact, these are the drop down boxes that spawn the zoom box when clicked on (each one will spawn the zoom box, only once)

How do I find the VBA that controls these dropdown boxes? In Excel it would be embedded in a UserForm and I'd go from there. Not sure about here though.



EDIT: Used my brain and found it. Here's the code.

VBA Code:
Option Compare Database

Private Sub BtnCLose_Click()
DoCmd.Close
End Sub

Private Sub Resolution_Note__BeforeUpdate(Cancel As Integer)
Me.Query_Resolved_ = True
Me.Resolution_Date_ = Now()
End Sub

Private Sub Resolution_Note__GotFocus()
DoCmd.RunCommand acCmdZoomBox
End Sub

Private Sub Text32_GotFocus()
DoCmd.RunCommand acCmdZoomBox
End Sub

Considering my colleague said he didn't know why the zoom box was appearing, that looks like pretty obvious behaviour to me. Do you know any reason why this would be added? Like is there some dependency I'm not aware of? I suppose I can just comment out the line and see what happens..
 

Attachments

  • boxes.png
    boxes.png
    15 KB · Views: 8
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top