Team LiB
Previous Section Next Section

Beep

Makes a sound using the computer’s built-in speaker.

Syntax

DoCmd.Beep()

Example

The following code causes the computer to sound a beep whenever the user enters a non-numeric value in the zip code field:

Private Sub txtZipCode_Change()
   If Not IsNumeric(Me.txtZipCode) Then
      Beep
   End If
End Sub

Comments


Team LiB
Previous Section Next Section