S
Sajit
I want to select between 2 list boxe content depending on which had received
the focus the last time. I am not able to use the variable name, last_sel
within the button click sub. How do I do this?
Option Compare Database
Public last_sel As String
Private Sub Command6_Click()
b = last_sel
If IsNull(Me!Text4) Then
Me!Text4 = Me!last_sel
Else
Me!Text4 = Me!Text4 & ", " & Me!last_sel
End If
End Sub
Private Sub List2_GotFocus()
last_sel = List2.Name
End Sub
Private Sub List7_GotFocus()
last_sel = List7.Name
End Sub
the focus the last time. I am not able to use the variable name, last_sel
within the button click sub. How do I do this?
Option Compare Database
Public last_sel As String
Private Sub Command6_Click()
b = last_sel
If IsNull(Me!Text4) Then
Me!Text4 = Me!last_sel
Else
Me!Text4 = Me!Text4 & ", " & Me!last_sel
End If
End Sub
Private Sub List2_GotFocus()
last_sel = List2.Name
End Sub
Private Sub List7_GotFocus()
last_sel = List7.Name
End Sub