the following code is for the click event that calls the Clicker Module
Expand|Select|Wrap|Line Numbers
- Private Sub Image30_Click()
- Dim counterx As Module
- Set counterx = Clicker
- counterx.IncrementCounter
- If (counterx.GetCount > 3) Then
- DoCmd.OpenForm ("pcspecs2")
- counterx.ResetCounter
- Else
- Exit Sub
- End If
Expand|Select|Wrap|Line Numbers
- Public count As Integer
- Option Compare Database
- Public Function GetCount() As Integer
- GetCount = count
- End Function
- Public Function IncrementCounter()
- count = count + 1
- End Function
- Public Function ResetCounter()
- count = 0
- End Function
Regards
Panteraboy