I have also had the problem for a while now (Windows 10 and Office 365) and it is quite annoying. Primarily, I experience it in continuous forms but someone here mentioned that it also happens in tables, so I tried it. With the cursor on any random record, the noise continues, but when I click on the upper left corner of the table, effectively selecting all records, the noise disappears and I can still scroll up or down. I mention this because it got me thinking that the scroll may be doing some kind of "enter" command and Access is saying the record can't be changed, or the focus of the text box or field is changing and we are scrolling away. Anyway, this has been bothering me for years and that is my two cents worth. A cold beer to anyone who can figure this out.Hi Everyone.
I am facing with this issue in my project, so I try to create a freshnew database to verify, the issue still happen.
The form is countinous form which data is fed from a table.
Open the form, click on any record, scroll up, down few times, make sure the current selected record went out the window for a time.
You will random hear the beep sound while scrolling the mouse.
Anyone experienced with this issue? Any how to fix it?
Appreciated for your helps.
Thanks,
Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal Count As Long)
If Me.OnMouseMove = "" Then
Me.HiddenControl.SetFocus
End If
End Sub
Hi Mike -That's very interesting. The form that this issue has bothered me the most on does not have record selectors enabled so I switched to a form that does have them to test out what you said Neil and it does look like the field that has the focus while the mouse passes through it is really what causes the beep. That is much more accurate info on what is happening to date. I'm using the MouseMove event for the form and a control in the header called HiddenControl. That control has a background color matching the header background color so when it gets the focus, all you might see is the cursor. Using this method doesn't get rid of the initial beep but it comes close to solving the problem as you will only get one beep maximum. I can live with that. Maybe someone can tweak this further to get it fully working but this is great.
Code:Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal Count As Long) If Me.OnMouseMove = "" Then Me.HiddenControl.SetFocus End If End Sub
I would LOVE to get rid of that beep, but it seems not worth the effort.
Option Compare Database
Option Explicit
'Code from https://wellsr.com/vba/2016/excel/use-vba-to-mute-unmute-volume-up-volume-down/
Const VK_VOLUME_MUTE = &HAD
Const VK_VOLUME_DOWN = &HAE
Const VK_VOLUME_UP = &HAF
#If VBA7 Then
Private Declare PtrSafe Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
#Else
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
#End If
Sub VolUp()
keybd_event VK_VOLUME_UP, 0, 1, 0
keybd_event VK_VOLUME_UP, 0, 3, 0
End Sub
Sub VolDown()
keybd_event VK_VOLUME_DOWN, 0, 1, 0
keybd_event VK_VOLUME_DOWN, 0, 3, 0
End Sub
Sub VolToggle()
keybd_event VK_VOLUME_MUTE, 0, 1, 0
End Sub
VolToggle