Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
,-------------------,-----,
| | ^ |
| |-----|
| | v |
'-------------------'-----'
| |
| |
Text1 ActiveXCtl0
Option Explicit
Dim SpinValue As Integer
Private Sub ActiveXCtl0_Change()
Text1.SetFocus
Text1.Text = ActiveXCtl0.Value
ActiveXCtl0.SetFocus
End Sub
Private Sub ActiveXCtl0_GotFocus()
ActiveXCtl0.Value = SpinValue
End Sub
Private Sub ActiveXCtl0_LostFocus()
SpinValue = ActiveXCtl0.Value
End Sub
Private Sub Text1_LostFocus()
SpinValue = Text1.Text
End Sub
Option Compare Database
Option Explicit
Dim SpinValue As Integer
Dim InhibitChange As Boolean
Private Sub ActiveXCtl0_Change()
If Not InhibitChange Then
InhibitChange = True
SpinValue = ActiveXCtl0.Value
Text1.SetFocus
Text1.Text = SpinValue / 100
ActiveXCtl0.SetFocus
InhibitChange = False
End If
End Sub
Private Sub Text1_Change()
If Not InhibitChange Then
InhibitChange = True
SpinValue = Int(Text1.Text * 100)
ActiveXCtl0.SetFocus
ActiveXCtl0.Value = SpinValue
Text1.SetFocus
InhibitChange = False
End If
End Sub