D
dhstein
OK - I coded a subroutine from the book that looks like this:
Option Compare Database
Option Explicit
Sub BeepWarning()
Dim xBeeps As Integer
Dim nBeeps As Integer
nBeeps = 5
For xBeeps = 1 To nBeeps
Beep
Next xBeeps
End Sub
Then I selected the event to run and got this:
Private Sub btnBeep_Click()
BeepWarning()
End Sub
When I click the button I get:
Compile Error Syntax Error message
Any help would be appreciated
Option Compare Database
Option Explicit
Sub BeepWarning()
Dim xBeeps As Integer
Dim nBeeps As Integer
nBeeps = 5
For xBeeps = 1 To nBeeps
Beep
Next xBeeps
End Sub
Then I selected the event to run and got this:
Private Sub btnBeep_Click()
BeepWarning()
End Sub
When I click the button I get:
Compile Error Syntax Error message
Any help would be appreciated