Thanks again. Unfortunately, I seem to be struggling with this..
Here's the code I have so far, mostly thanks to you
Private Sub Form_Timer(
Dim Rst As DAO.Recordse
Dim PreRequeryCount As Lon
Dim PostRequeryCount As Lon
On Error GoTo Err_Form_Time
Set Rst = Me.RecordsetClon
Rst.MoveLas
PreRequeryCount = Rst.RecordCoun
Me.Requer
PostRequeryCount = Rst.RecordCoun
If PostRequeryCount <> PreRequeryCount The
<<Your Code To Play Sound>
------- I try to put in Dev's code for the Wav/MP3 files and get this message: Compile Error. Only comments may appear after End Sub, End Function, or End Property----------
End I
Rst.Clos
Set Rst = Nothin
Exit_Form_Timer
Exit Functio
Err_Form_Timer
MsgBox Err.Descriptio
Resume Exit_Form_Time
End Functio
----- PC Datasheet wrote: ----
Apparently you have code in the OnTimer event of your form. Add the following t
your code
Right after the first line
Dim Rst As DAO.Recordse
Dim PreRequeryCount As Lon
Dim PostRequeryCount As Lon
Before the Requery Statement
Set Rst = Me.RecordsetClon
Rst.MoveLas
PreRequeryCount = Rst.RecordCoun
After the Requery Statement
PostRequeryCount = Rst.RecordCoun
If PostRequeryCount <> PreRequeryCount The
<<Your Code To Play Sound>
End I
Rst.Clos
Set Rst = Nothin
-
PC Datashee
Your Resource For Help With Access, Excel And Word Application
(e-mail address removed)
www.pcdatasheet.co
Derek Wittman said:
I have a form that requeries every 30 seconds in the background - it's
currentuser list of my Main database (the form is on the Manager database)
if the list of users increases or decreases as a result of the requery, I'
like to add a ding.wav to it. I'm sure that this can be done (seems just abou
everything can be done in Access), but I'm not sure how to make this happen