Claudiusjerry
New member
- Local time
- Today, 14:44
- Joined
- Jul 15, 2024
- Messages
- 23
I have a form that contains a timer, which when the time reaches "00:00", I want the IIF to be able to detect and pop out a window with system sound/ beeping sounds
How can I detect "00:00" after counting down (the time in the form changes every second), and pop out windows with continuous beeping sounds?
What I mean is unless you close the window, the beeping sound will continuously release to remind the users.
This is my simplified code in box Text29
(This code works properly)
The pop-out window works well, then I try to add beeping sounds to the window:
I tried to modify a lot of ways like
=IIF ( Text31 = "00:00", MsgBox (" Time's Up!", vbCritical), "None") OR =IIF ( Text31 = "00:00", MsgBox (" Time's Up!", vbExcalamtion), "None")
It returns with "Name?" in the text box (Which is the error I believe)
Even if I write my codes as a function and I call it, it cannot be able to call back...
=IIF ( Text31 = "00:00", Text29_AfterUpdate() , "None")
(I found the speak function on the internet and it works properly after testing)
Also, I tried other built-in functions but still not correct.
= IIF ( Text43 = "00:00", Beep(), "None") OR DoCmd.Beep OR DoCmd.Beep() Or RunMacro etc...
When I tried calling Text29_DblClick, it worked properly, the system spoke and windows popped out, but what I want is for it to detect the change into "00:00" and calls pop out, not double-clicking the box for the trigger.
When I tried using Text29_Change/OnChange/OnDirty/Dirty/AfterUpdate.....
All of the call and beeping functions don't work, I don't know what is the problem.
Are there ways to perform this function and call it successfully?
How can I detect "00:00" after counting down (the time in the form changes every second), and pop out windows with continuous beeping sounds?
What I mean is unless you close the window, the beeping sound will continuously release to remind the users.
This is my simplified code in box Text29
The pop-out window works well, then I try to add beeping sounds to the window:
I tried to modify a lot of ways like
=IIF ( Text31 = "00:00", MsgBox (" Time's Up!", vbCritical), "None") OR =IIF ( Text31 = "00:00", MsgBox (" Time's Up!", vbExcalamtion), "None")
It returns with "Name?" in the text box (Which is the error I believe)
Even if I write my codes as a function and I call it, it cannot be able to call back...
=IIF ( Text31 = "00:00", Text29_AfterUpdate() , "None")
Also, I tried other built-in functions but still not correct.
= IIF ( Text43 = "00:00", Beep(), "None") OR DoCmd.Beep OR DoCmd.Beep() Or RunMacro etc...
When I tried calling Text29_DblClick, it worked properly, the system spoke and windows popped out, but what I want is for it to detect the change into "00:00" and calls pop out, not double-clicking the box for the trigger.
When I tried using Text29_Change/OnChange/OnDirty/Dirty/AfterUpdate.....
All of the call and beeping functions don't work, I don't know what is the problem.
Are there ways to perform this function and call it successfully?