C
Caligo
I am new to Microsoft Access and VB so I am going through the internet
looking for tutorials. I stumbled across one that has the .AddItem
method, but it seems that Access does not use that code. This is the
little bit of code that I have:
Private Sub cmdAdd_Click()
lstTextList.AddItem (txtAddText.Text)
If (cmdDelete.Enabled = False) Then
cmdDelete.Enabled = True
End If
End Sub
cmdAdd being a button
lstTextList a list box
txtAddText a text box
cmdDelete another button
I want to add to the list box when I click on the cmdAdd button, but
when I do it doesn't work. If someone could explain it to me I would be
very grateful.
looking for tutorials. I stumbled across one that has the .AddItem
method, but it seems that Access does not use that code. This is the
little bit of code that I have:
Private Sub cmdAdd_Click()
lstTextList.AddItem (txtAddText.Text)
If (cmdDelete.Enabled = False) Then
cmdDelete.Enabled = True
End If
End Sub
cmdAdd being a button
lstTextList a list box
txtAddText a text box
cmdDelete another button
I want to add to the list box when I click on the cmdAdd button, but
when I do it doesn't work. If someone could explain it to me I would be
very grateful.