Private Sub Comando10_Click() 'è il bottone che contiene la virgola
Dim CasellaContr As String 'è una text box che non è associata e mi indica quale textbox associata ha il setfocus
CasellaContr = Me.Testo5.Value
DoCmd.GoToControl (CasellaContr)
If Me(CasellaContr).Value = Null Or 0 Then
Me(CasellaContr).Value = ","
Else
Me(CasellaContr).Value = Me(CasellaContr) & ","
End If
End Sub
Private Sub Comando4_Click()
Dim CasellaContr As String
CasellaContr= Me.Testo5.Value
DoCmd.GoToControl (CasellaContr)
If Me(CasellaContr).Value = Null Then
Me(CasellaContr).Value = Me.Comando4.Tag
Else
Me(CasellaContr).Value = Me(CasellaContr) & Me.Comando4.Tag
End If
End Sub
Private Sub Comando7_Click()
Dim CasellaContr As String
CasellaContr = Me.Testo5.Value
DoCmd.GoToControl (CasellaContr)
If Me(CasellaContr).Value = Null Then
Me(CasellaContr).Value = Me.Comando7.Tag
Else
Me(CasellaContr).Value = Me(CasellaContr) & Me.Comando7.Tag
End If
End Sub
Private Sub Numero_GotFocus()
Me!Testo5.Value = "Numero"
End Sub
Private Sub Numero2_GotFocus()
Me!Testo5.Value = "Numero2"
End Sub