S
SimonDeLikeable
Hi
A Client has requested a beep everytime an error or warning message
appears in the database. So, for example, if they try to save an Empoloyee
without entering a name, then the msgbox should always beep. If theres a
system error, there should always be a beep also. And in some instances, the
current form event should cause a beep. For example, if a timesheet has not
been exported, I flash the title red and sound a beep.
Now this system is over two years old, so I'm going through it finding
the different msgbox functions, and adding Docmd.Beep. However - Access
seems to have different beeps. As follows
DoCmd.Beep
MsgBox "Exported Timesheets cannot be deleted"
will sound a beep. However, it seems that all message boxes already make a
beep. But it varies depending on which option you have taken.
MsgBox "Exported Timesheets cannot be deleted", vbExclamation
will sound a different beep to
MsgBox "Exported Timesheets cannot be deleted", vbCritical
Its something I never paid any attention to before. Docmd.Beep seems to not
even run, but I reckon it just runs into the msgbox sound.
Any ideas how I can standardise the beep across the board? Sounds trivial I
know, but the customer is always right!
Thanks
Diarmuid
A Client has requested a beep everytime an error or warning message
appears in the database. So, for example, if they try to save an Empoloyee
without entering a name, then the msgbox should always beep. If theres a
system error, there should always be a beep also. And in some instances, the
current form event should cause a beep. For example, if a timesheet has not
been exported, I flash the title red and sound a beep.
Now this system is over two years old, so I'm going through it finding
the different msgbox functions, and adding Docmd.Beep. However - Access
seems to have different beeps. As follows
DoCmd.Beep
MsgBox "Exported Timesheets cannot be deleted"
will sound a beep. However, it seems that all message boxes already make a
beep. But it varies depending on which option you have taken.
MsgBox "Exported Timesheets cannot be deleted", vbExclamation
will sound a different beep to
MsgBox "Exported Timesheets cannot be deleted", vbCritical
Its something I never paid any attention to before. Docmd.Beep seems to not
even run, but I reckon it just runs into the msgbox sound.
Any ideas how I can standardise the beep across the board? Sounds trivial I
know, but the customer is always right!
Thanks
Diarmuid